Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Net::SSH::Perl question

by quester (Vicar)
on Oct 30, 2008 at 06:40 UTC ( [id://720410]=note: print w/replies, xml ) Need Help??


in reply to Net::SSH::Perl question

It would help a lot if you showed us the output of your script. I would hazard a quick guess that Windows doesn't like the syntax of:
c:\Documents and Settings\admin\test.bat
because of the unquoted spaces. You might try changing the call to $ssh->cmd to
$ssh->cmd(qq{"$remote_dir\\$localfile"});

Replies are listed 'Best First'.
Re^2: Net::SSH::Perl question
by calmthestorm (Acolyte) on Oct 30, 2008 at 18:59 UTC
    Actually there is zero output aside from exit code 255..

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-23 20:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found