From: Seid Rudy Date: 2006-09-09T07:49:50+09:00 Subject: Re: calling scp from ruby Seid Rudy wrote: > unknown wrote: >> On Sat, 9 Sep 2006, Seid Rudy wrote: >> >> system "scp #{ src } #{ dst } >#{ log } 2>&1" >> >> are you on windows by any chance? >> > no, unix > > I did that and i got an empty log. > > I also rerun the script without deleting the sql file so it appended to > the file like it should. When i looked at the destination file i noticed > the file stopped at the same spot. But when i look up further to the top > of the destinatio file i noticed it had the a complete content of the > sql file followed by an incomplete content of the sql file. Ofcourse the > source has content of two complete sql files appended in one. I DON'T THINK IT'S scp ISSUE. i get the same problem when i do this system("cat #{sqloutput}/#{date_folder}.sql #{sqloutput}/#{date_folder}.jnk >#{sqloutput}/#{date_folder}.out") -- Posted via http://www.ruby-forum.com/.