From: Jean Verger Date: 2006-09-07T12:07:55+09:00 Subject: Re: calling scp from ruby What I'm using when scping is: scp -r dirToCopy destination ( -r for recursive copy folder) but, I believe that when dirToCopy or destination is remote, you should write: USER@IP:/FOLDER/FILE in your lines I can't see the @ sign Could it be like: `scp -r #{sql_folder} #{remotelogin}:#{remotesqlfolder}/#{document_id}` `scp -r #{sql_folder} #{remoteUSER}@#{remotesIP}:/#{document_id}` hope it helps, Jean On 9/7/06, Seid Rudy wrote: > I have a problem using "scp" from a ruby scrip. It copies my sql file to > the destination but it cuts the file the middle of line 290. > When i run scp manually i the copied file is normal. > > I am using `` to call the unix command > > Dir.chdir(sql_folder) > `scp -r #{sql_folder} #{remotelogin}:#{remotesqlfolder}/#{document_id}` > > Do you have any idea what i am doing wrong? > > -- > Posted via http://www.ruby-forum.com/. > >