From: "uwe@..." Date: 2010-06-30T03:15:07+09:00 Subject: Re: Net::SCP download from windows to linux and encrypt password --Boundary_(ID_ywwZCddh92HbBKLB2MuDZw) Content-type: text/plain; CHARSET=US-ASCII Content-transfer-encoding: 7BIT Content-disposition: inline Make sure your backslashes don't generate tab characters. Use single quotes or escape the backlashes with extra backslash. Sent from my HTC ----- Reply message ----- From: "Kalpesh Patel" Date: Tue, Jun 29, 2010 11:03 Subject: Net::SCP download from windows to linux and encrypt password To: I am using Net::SCP to download/upload file. I am doing like this... ---- require 'net/scp' session = Net::SCP.start("10.10.10.10", "username", :password => "password", :config => false) sess.download! "/tmp/test.txt", "/root/" ---- It works well when the source machine is linux and path is like "/tmp/test.txt". What if the source machine is Windows? My path would be something like "C:\temp\test.txt" but it does not work. It throws error "No such file or directory". Any idea how can I do that? Also, the password I give in the start function above is in plain text. How can I encrypt it and pass it with the function? Thanks much, -Kalpesh -- Posted via http://www.ruby-forum.com/. --Boundary_(ID_ywwZCddh92HbBKLB2MuDZw)--