[S.u.S.E. Linux] Re: Automating telnet
"NS" == Nikolai Schlegel <nikolai@netbox.com> writes:
NS> On 16-Jul-98 Joseph Beaman wrote: >> >> I would like to automate a telnet session via perl, >> or at the very least with a shell script. That's impossible for certain technical reasons. They are best explained by the `Expect' literature. >> Any ideas how I can go about this? Maybe someone >> could tell me how to automate a login at least? >> >> Thanks NS> Have a look at "Expect". It lets you run arbitrary commands NS> and specify expected outputs and the proper responses (similar NS> to ppp dialin scripts). Very good suggestion indeed. NS> Expect is usually run from within TCL/TK, It is actually a Tcl/Tk extension. NS> I don't know if you can use Perl with it. No, Expect doesn't work with perl. But on CPAN you will find a perl module, that tries to achieve something similar. - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (1)
-
Jochen_Hayek@ACM.org