STDIN and STDOUT, and Piping don't always work on NT.
You may get unexpected results when you try to redirect the output of files that use Windows NT's file association feature. You can use pl2exe or pl2bat to convert a Perl script to an executable or a batch file. This should solve any problems you may have with redirection.
Gary W. MacDonald
-----Original Message-----
From: navilliat [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
March 15, 2001 1:28 PM
To:
'[EMAIL PROTECTED]';
[EMAIL PROTECTED]
Subject:
Perl I/O redirection
Hello,
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?
Thanks
Dan
_______________________________________________
Perl-Win32-Admin
mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
