Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2005 18:17:05 -0700 (PDT)
From:      Rob <spamrefuse@yahoo.com>
To:        phusion2k@gmail.com
Cc:        FreeBSD questions <freebsd-questions@freebsd.org>
Subject:   Re: Help with Expect
Message-ID:  <20050523011706.73362.qmail@web54001.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Phusion wrote:
> I need some help with an expect script I'm trying
> to write. Here's what I would like to do.
> 
> - Ping the host to see if it's up.
>   a. If the host responds to pings telnet into it.
>   b. If the host doesn't respond to pings write
>      that to a log file and
> close the expect script properly.
> 
> The host does respond to pings. I was thinking if
> I see a ttl in the response packet to assume it's
> up and telnet into it. Let me know how I can do
> the following with expect. Also, how do I close
> an expect script properly? Thanks.

I'm not an expect expert. I used it only once.
Maybe that 'man autoexpect' could help you out.
Autoexpect accepts a sequence of commands and
wraps it in an expect script.

Regards,
Rob.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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