You should use cmd /C in front of it. The redirection is a function of shell that's why it works in DOS cmd /C perl script.pl 1>script.log 2>script.err : I am trying to run a PERL script using the following commands : Command Line : : perl script.pl 1>script.log 2>script.err : Start in : c:\script : Running the above command via a DOS prompt gives me the correct STDOUT and : STDERR output, and running the above via 24x7 WITHOUT the additional : arguments works as well.. : is there some series of quotes, etc I need to use to have the above command : line run as is ? : It also seems to fail when run via RUNANDWAIT via JAL script as well..
|