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
In reply to Re: how to redirect STDERR and STDOUT to a file when running as a windows service?
by Hue-Bond
in thread how to redirect STDERR and STDOUT to a file when running as a windows service?
by toadi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |