in reply to how to redirect STDERR and STDOUT to a file when running as a windows service?
I tried to redirect with >> and 2>>
Instead of doing that, just pass a parameter to the script (eg: "-d") and then in the script, check the presence of that parameter (Getopt::Std, Getopt::Long) and open the necessary files.
--
David Serrano
|
---|