Help with Expect Script

Phusion phusion2k at gmail.com
Sun May 15 11:09:01 PDT 2005


I'm new to writing expect scripts and need some help. The script will
telnet to a host and run some commands. I want the script to ping the
host to see if it's alive first before it telnets into it. Also, I
know the host is pingable meaning it responds to pings. If the host
doesn't respond to a ping I want it to log that to a log file and then
quit. I already know how to telnet to the host, but not sure about the
ping part and writing it to a log file. Could you please reply to this
email with a little example script. Thanks.

Phusion


More information about the freebsd-questions mailing list