rgb96 has asked for the wisdom of the Perl Monks concerning the following question:
Hey, all. I'm just tyring to write a simple script using Net::SSH::Perl to log onto another computer and execute a program on there. It doesn't run the other program, and I'm not really sure why, just wondering if you guys could give me some help. Oh yeah, I setup the SSH so that I don't need a password and it just uses public keys.
#!/usr/bin/perl -w use Net::SSH::Perl; use strict; my $ssh = Net::SSH::Perl->new("xx.x.xx.xxx"); $ssh->login("gbonner"); $ssh->cmd("cd AATv2"); $ssh->cmd("perl getEnvs.pl");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ssh trouble
by salva (Canon) on Mar 10, 2009 at 19:34 UTC | |
by rgb96 (Acolyte) on Mar 10, 2009 at 19:42 UTC | |
|
Re: ssh trouble
by toolic (Bishop) on Mar 10, 2009 at 18:54 UTC | |
by rgb96 (Acolyte) on Mar 10, 2009 at 18:59 UTC | |
by Bloodnok (Vicar) on Mar 10, 2009 at 19:22 UTC | |
by rgb96 (Acolyte) on Mar 10, 2009 at 19:28 UTC | |
by toolic (Bishop) on Mar 10, 2009 at 19:08 UTC | |
by rgb96 (Acolyte) on Mar 10, 2009 at 19:12 UTC | |
by toolic (Bishop) on Mar 10, 2009 at 19:30 UTC |