From: Jan Svitok Date: 2006-09-07T15:50:24+09:00 Subject: Re: calling scp from ruby On 9/7/06, Jean Verger wrote: > 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}` > (The OP seems to know the proper syntax, as he is able to do it by hand.) (I have no clue what the cause is, these are just hint what to try) - try another file (to see whether it is dependent on some pattern in the file, or whether it transfers the same size all the time) - try removing few line around that line - try using system instead of `` - look at the logs on the remote side