[lug] "expect" or something similar?
dan radom
dradom at redback.com
Wed Dec 12 18:53:04 MST 2001
i recently went through the process of rewriting all my expect scripts in perl using Expect.pm. They ran much faster, and caused fewer problems in general. i'd be happy to provide a few examples of both perl and straight expect scripts if you'd like.
dan
* Bryan Field-Elliot (bryan_lists at netmeme.org) wrote:
> 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
>
More information about the LUG
mailing list