|I am trying to run a perl script in a batch file then output the contents to a logfile. When I run from the cmd prompt the perl script will run but from the batch file it hangs until I manually hit 'Enter' (defeating the purpose of the batch file).|
The batch file is as simple as:
perl -w script.pl>C:\Perl\Log\logfile.txt
The cmd prompt hangs at:
C:\perlscriptpath>perl -w script.pl 1>C:\Perl\Log\logfile.txt
I don't understand what is happening after the first part of the cmd that is throwing the 1 error.
Any ideas - I know I must be overlooking the most obvious detail.