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

VMS perl 5.6.1 system() stdout redirect problem

Thread Next
From:
June Young from DV
Date:
January 16, 2002 07:07
Subject:
VMS perl 5.6.1 system() stdout redirect problem
Message ID:
00A08206.65C8C37E.22@dymd.dymaxion.ca
Hi,

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
file. 

test.prl
==========
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


Thanks,

JY

--
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: JYoung@dymaxion.ca
                                               http://www.dymaxion.ca

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About