I recall this problem being discussed a while ago.
While I don't know the details, the problem is somewhere in the OS.
Whatever it is, it looked like we had to live with it.
It's very annoying, but as long as you put 'perl' in front of the script,
redirection works fine... I often use "perl -S myscript.pl".
If you are in a dos window, simple call 'myscript' works fine, producing
the output on the screen.
If I call it from another script, I don't mind too much having "perl -S" in
front of it.
However, when I call a script from emacs, I have to do "perl -S".
Otherwise, I never see the output. :(
At 03:27 PM 3/15/01, navilliat wrote:
>I have configured my server to launch perl scripts by adding .PL in the
>PATHEXT variable as well as using the ftype command. I have noticed that I
>can not use redirection now when I run a script. For example if I run
>foo.pl like this: foo > test.txt, a empty test.txt file is created. If I
>place foo.pl inside a bat file and then run the bat file foo.bat> test.txt,
>then the test.txt file has the output from foo.pl. Any ideas as to what is
>going on?
--
Mike Mirman Tel: (508) 647-7555
The Mathworks, Inc. FAX: (508) 647-7013
3 Apple Hill Drive, Natick, MA 01760-2098
mailto:[EMAIL PROTECTED] Web: http://www.mathworks.com
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin