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 ( #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? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2022-10-06 10:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?