Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^7: Urgent Help For Perl Issues

by arvindninestars (Initiate)
on Mar 18, 2013 at 07:20 UTC ( #1023982=note: print w/ replies, xml ) Need Help??


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

No Luck salva..Any Other ideas..


Comment on Re^7: Urgent Help For Perl Issues
Re^8: Urgent Help For Perl Issues
by salva (Monsignor) on Mar 18, 2013 at 08:30 UTC
    yes, post your code, otherwise nobody is going to guess what you are doing wrong!
      Two Different Codes i Posted here...Please check...
      #!/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");
        with code tags, please:
        <c> your code here! </c>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-08-21 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (144 votes), past polls