以小百合为例,很简单的一个脚本:)
#!/bin/sh
echo -n “username:”
read lilyuser
echo -n “password:”
read lilypass
(echo “${lilyuser}”; sleep 1; echo “${lilypass}”; sleep 1; echo; sleep 1; echo; sleep 1; echo; sleep 1; echo; sleep 1; echo; sleep 1; echo; sleep 1; echo; sleep 1; echo; sleep 1; echo; sleep 1; echo; sleep 1; echo -n “q”; sleep 1; echo -n “q”; sleep 1; echo -n “q”; sleep 1; echo “i”; sleep 1; echo “a”; while true; do echo -n “a”; sleep 180; done) | telnet lilybbs.net &