Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: (OT) Copying files from Window to Linux box

by salva (Canon)
on Jan 12, 2022 at 12:50 UTC ( [id://11140406]=note: print w/replies, xml ) Need Help??


in reply to (OT) Copying files from Window to Linux box

The problem you are facing is that most programs ported from UNIX (in your case, scp) are not able to handle Windows share paths correctly.

Net::SSH::Any seems to handle them right:

$ssh = Net::SSH::Any->new("ge.com", user=>luccap, password=>$password) +; $ssh->scp_put('\\\\rls02\\common\\TECH_DEV\\PUBLIC\\Orders\\CUSTOMER O +RDERS\\GE4567_TX-03A\\A1\\MOR_GE4567_6579_A1.docx', '/home/luccap/MOR_GE4567_6579_A1.docx') or die $ssh->error;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-03-28 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found