cosmicsoup has asked for the wisdom of the Perl Monks concerning the following question:
my $ssh = Net::SSH::Perl->new("mybox.myhost.com"); $ssh->login($user, $pass); $ssh->cmd( "export SYBASE=\"/usr/local/sybase/OC\"" ); $ssh->cmd( "export AUTOSYS=\"/usr/platinum/autosys\"" ); $ssh->cmd( "export AUTOUSER=\"/usr/platinum/autouser\"" ); $ssh->cmd( "export __std_err_file=/dev/null"); $ssh->cmd( "export __command=NIL"); $ssh->cmd( "export AUTO_JOB_PID=0"); $ssh->cmd( "export AUTO_JOB_NAME=\"myjob\""); $ssh->cmd( "export APP_ROOT="); my($stdout, $stderr, $exit)=$ssh->cmd( "autorep -q -J myjob#init#t" ); print "$stdout\n";
2006-04-22 Retitled by Corion, as per Monastery guidelines
Original title: 'Net::SSH::perl'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: use Net::SSH::perl to execute multiple commands
by zengargoyle (Deacon) on Feb 21, 2003 at 22:56 UTC | |
|
Re: use Net::SSH::perl to execute multiple commands
by runrig (Abbot) on Feb 22, 2003 at 08:36 UTC |