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
In reply to Re: Perl's Telnet vs. Expect Module
by sth
in thread Perl's Telnet vs. Expect Module
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |