|Do you know where your variables are?|
how to redirect STDERR and STDOUT to a file when running as a windows service?by toadi (Chaplain)
|on May 12, 2006 at 10:10 UTC||Need Help??|
toadi has asked for the
wisdom of the Perl Monks concerning the following question:
I have a perl script as a service in windows:
I installed it wit srvany.
Now I have a debug switch I can turn on and then all the print statements get printed. Also there are some issues throwing perl warnings. I tried to redirect with >> and 2>>, but this doesn't work while running as a service.
I tried to create a bat file, but then I can't stop the service anymore.
So I need some guidance how to redirect the STDERR AND STDOUT to a file when running as a windows service.
My opinions may have changed,
but not the fact that I am right
Edit: g0n - removed pre tags, added formatting
2006-05-13 Retitled by Arunbear