From: Stephen Waits Date: 2006-04-04T09:13:22+09:00 Subject: Re: Using File.open block to manage svnadmin dump stream Brad C. wrote: > # The following block results in bad dump files, not accepted by > svnadmin load > File.open("path/to/todays/dumpfile", "a") do |file| > file << `svnadmin dump "path/to/repository" -r #{revision} > --incremental` > end > > # However, a strait command expression does work, like > `svnadmin dump "path/to/repository" -r #{revision} --incremental >> > "path/to/todays/dumpfile"` Can you do it both ways and then diff the two files to see what's actually different? Also, try using write (or, failing that, puts) instead of << to output to the file. --Steve