dru145 has asked for the wisdom of the Perl Monks concerning the following question:
Here's what test.pl looks like on the other server:use Net::SSH qw(sshopen2); sub ssh { my $user = "jdoe"; my $host = "192.168.253.5"; my $cmd = "/home/jdoe/test.pl"; sshopen2("$user\@$host", *READER, *WRITER, "$cmd") || die "ssh: $!"; close(READER); close(WRITER); }
#!/usr/bin/perl -w use strict; rename "/home/jdoe/test", "/home/jdoe/testnew" or print "/home/jdoe not found\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need Help With Net::SSH Module
by valdez (Monsignor) on Oct 17, 2002 at 01:21 UTC | |
|
Re: Need Help With Net::SSH Module
by Aristotle (Chancellor) on Oct 17, 2002 at 01:08 UTC |