Swimming with the Razorfishes

Sunday, November 16, 2003

Tonight, expect is my friend:

#! /usr/bin/expect -f
spawn telnet $argv 25
expect "Relay Service ready"
send "\035\r"
expect "telnet>"
send "quit\r"

0 Comments:

Post a Comment

<< Home