>>> sender: "Alex Barrett" date: "Sat, Apr 08, 2006 at 05:49:39PM +0900" <<<EOQ
> Is there any way to gain greater control of the command line in ruby? I 
> know it's usually possible to send special characters to send the output 
> to a specific location, but I can't seem to work it out.
> Forgive me if I'm overlooking the obvious; Nuby here :)
> 
> P.S. I'm on Windows. I imagine that could figure strongly here.
Command line 'belongs to' the command interpreter not to Ruby, so what
you're actually asking is 'what can your windows commandline do' for
you, right? :)

For saving the output, you can simply redirect it to the desired
location using '>', like this:

    ruby.exe myscript.rb > c:\somefile.txt

More on redirection here (though UNIX specific, it does apply to windows
as well): http://en.wikipedia.org/wiki/Redirection_%28Unix%29


Good luck,
Alex