[lug] "expect" or something similar?

Bryan Field-Elliot bryan_lists at netmeme.org
Wed Dec 12 17:37:44 MST 2001


I need to write a shell script, which executes another program (ssh,
actually), answer a few questions on the behalf of the user (wait for X,
send x, then wait for Y, send y, etc.), and finally, turn control of the
program over to the user for real.

Is the "expect" program the right way to do this? Or is there some other
more recommended approach?

Thanks in advance,

Bryan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20011212/fb2b0dcd/attachment.html>


More information about the LUG mailing list