in reply to Perl's Telnet vs. Expect Module
What are you doing on the remote server? If you are just running a non interactive program, then I would use Net::Telnet. If they are programs that need interactive responses, then Expect is probably what you want. I usually ssh to a server and run a command with a system() call.
I probably should clarify that, I create a command like,
my $cmd = q[ssh hostname -l foo 'ls bar']; die $! if system($cmd);
sth
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl's Telnet vs. Expect Module
by exussum0 (Vicar) on Dec 03, 2003 at 04:27 UTC | |
|
Re: Re: Perl's Telnet vs. Expect Module
by TASdvlper (Monk) on Dec 03, 2003 at 15:51 UTC |