Hi.
I would like to pipe the output of a ruby script to a text file. On unix, I can easily type
mycommand > output.txt
With ruby, I typed
ruby mytestscript.rb > output.txt
The result still prints out to the standard microsoft commandline console output and not to the file output.txt. How can I achieve the output to a text file?
With ruby, I typed
ruby mytestscript.rb > output.txt
The result still prints out to the standard microsoft commandline
console output and not to the file output.txt. How can I achieve the
output to a text file?
That's odd.... Which version of windows are you running?
On my win2k box,
ruby -e "puts 'hi'" > zz
...creates a file called "zz" with "hi\n" in it as expected.
With ruby, I typed
ruby mytestscript.rb > output.txt
The result still prints out to the standard microsoft commandline console output and not to the file output.txt. How can I achieve the output to a text file?
That's odd.... Which version of windows are you running?
On my win2k box,
ruby -e "puts 'hi'" > zz
...creates a file called "zz" with "hi\n" in it as expected.