Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2005 13:09:00 -0500
From:      Phusion <phusion2k@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Help with Expect Script
Message-ID:  <c3ed3fdc05051511094476c47e@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c3ed3fdc05051511094476c47e>