spawn -noecho /usr/bin/telnet $host
expect login:
...
etc
Which works fine, but at the 'expect' line all the banners from the
telnet server are being sent to the local screen. I'd like the script to
run the expect stuff silently.
The stty command seems to turn off screen echoing for the 'send'
command; can I turn off screen echoing for the 'expect' command?
To turn the screen output off:
log_user 0
To turn it back on:
log_user 1
You can still capture the output with [expect] but won't see it on the
screen.
---Victor
to switch of passthrough of all matched chars.
uwe
Thanks to all who replied - it's clear as day in the man page, but
actually *finding* anything in that man page is somewhat tricky... :o}
Right,
the order is aphabetic and not telpathic ;-)
I've had my share of ping-pong reading in that
man page too.
uwe