develooper Front page | perl.vmsperl | Postings from January 2002

VMS perl 5.6.1 system() stdout redirect problem

Thread Next
June Young from DV
January 16, 2002 07:07
VMS perl 5.6.1 system() stdout redirect problem
Message ID:

I have reported this problem before, and wonder whether there is any
patch for this?  (This problem does not exist in perl 5.00406.)

In the following perl script,
the output of system() seems to be lost if I redirect the stdout to a

system("copy test1.tmp test2.tmp");
print stdout "output to stdout";
print stderr "output to stderr";

A:001029> perl test.prl
%COPY-E-OPENIN, error opening DSA0:[DYMAX.001029]TEST1.TMP; as input
-RMS-E-FNF, file not found
output to stdout
                output to stderr

A:001029> perl test.prl >jy1.tmp 2>jy2.tmp
A:001029> type jy1.tmp
output to stdout
A:001029> type jy2.tmp
output to stderr



June Young, Software Development                bus: (902)422-1973 x144
Dymaxion Research Ltd., 5515 Cogswell St.,      fax: (902)421-1267
Halifax, Nova Scotia, B3J 1R2 Canada         mailto:

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About