What can be the reason, that script.pl > output.txt creates empty file output.txt and perl script.pl > output.txt creates output.txt with data produced by script.pl?
Does the execution of the first command produce any errors on STDERR (the cmd/dosbox/shell/terminal)?
What does the first line of script.pl look like?
What kind of a shell/terminal are you using?
Cheers, Sören
In reply to Re: redirection problem
by Happy-the-monk
in thread redirection problem
by grizzley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |