From: ara.t.howard@... Date: 2006-09-09T08:13:55+09:00 Subject: Re: calling scp from ruby On Sat, 9 Sep 2006, Seid Rudy wrote: > 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") hmmm. are you sure you don't have disk issues? -a -- what science finds to be nonexistent, we must accept as nonexistent; but what science merely does not find is a completely different matter... it is quite clear that there are many, many mysterious things. - h.h. the 14th dalai lama