From: "Brad C." Date: 2006-04-04T09:03:58+09:00 Subject: Using File.open block to manage svnadmin dump stream While working on a script to manage dumps from a subversion repository of mine, I found that when I used a File.open block to work with the stream returned by svnadmin dump, I would get errors regarding a malformed header in the dump file. For instance: # 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"` Might anyone know why the use of a File.open block would result in a dump file not accepted by svnadmin load, while a strait command expression works? I tried using the << and write methods of File, but still no luck. Perhaps I don't understand a more appropriate way to write the stream? Thanks for taking a look. Brad -- Posted via http://www.ruby-forum.com/.