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");
In reply to ssh trouble by rgb96
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |