Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^10: Urgent Help For Perl Issues

by salva (Monsignor)
on Mar 18, 2013 at 11:25 UTC ( #1024012=note: print w/ replies, xml ) Need Help??


in reply to Re^9: Urgent Help For Perl Issues
in thread Urgent Help For Perl Issues

with code tags, please:

<c> your code here! </c>


Comment on Re^10: Urgent Help For Perl Issues
Download Code
Re^11: Urgent Help For Perl Issues
by Anonymous Monk on Mar 18, 2013 at 12:05 UTC
    #!/usr/bin/perl #use strict; #use warnings; use Net::SSH::Perl; my $host = "XXXX"; my $user = "XXXX"; my $password = "XXXX"; my $path = "/XXXX"; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $password); my($stdout, $stderr, $exit) = $ssh->cmd("cd $path"); ($stdout, $stderr, $exit) = $ssh->cmd("tar -xvzf XXXX.tar.gz"); or #!/usr/bin/perl #use strict; #use warnings; use Net::SSH::Perl; my $host = "XXXX"; my $user = "XXXX"; my $password = "XXXX"; my $path = "/XXXX"; my $cmd = "tar -xvzf XXXX.tar.gz"; my $ssh = Net::SSH::Perl->new($host); $ssh->login($user, $password); my($stdout, $stderr, $exit) = $ssh->cmd("cd $path && $cmd");

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024012]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-10-24 20:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (137 votes), past polls