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..