On Mon, Apr 20, 2009 at 7:49 AM, Roger Pack <rogerpack2005 / gmail.com> wrote=
:

>
> >> just to make sure the program doesn't die.
> >> perhaps the win32-service gem would allow you to create a service that
> >> redirects its stdout+stderr to somewhere so you could see the output.
> >> Good luck.
> >> -=3Dr
> >
> > Hello !
> > With C:\Program Files\ruby\bin\ruby.exe "C:\Program
> > Files\RR_outils\FileHandler\FileHandler.rb", I got this :
> > Usage: FileHandler [options]
> >     -i, --interactive        Run as standalone
> >     -d, --debug              Print out debug information
> >     -... (the rest of the commands)
> >
> > What does "stdout+stderr" mean ?
>
> It means redirect output to a file. Difficult to explain, though this
> might help.
>
> http://www.google.com/search?client=3Dsafari&rls=3Den&q=3Dredirect%20stdo=
ut%20stderr&ie=3DUTF-8&oe=3DUTF-8
> Cheers.
> -=3Dr
>
> --
> Posted via http://www.ruby-forum.com/.
>
>
It is possible to "redirect" but you have to re-open the streams and point
them to a file.
$stdout =3D File.open("C:\\out_file", "w")

--=20
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can=92t hear a word you=92re saying."

-Greg Graffin (Bad Religion)