develooper Front page | perl.beginners | Postings from February 2002

Re: Not your average system() question...

Thread Previous | Thread Next
From:
William.Ampeh
Date:
February 6, 2002 08:49
Subject:
Re: Not your average system() question...
Message ID:
OFC8425E4D.998186EE-ON85256B58.005B9374@frb.gov

I usually do not use system or command ticks.
I always pipe the output to STDOUT if I wish to manipulate the output of
any system
command.  Alternatively, you could redirect output to a TEMP file, then
read from that file,
but "piping" is more efficient.

open MY_STDOUT,  "{system command}  |  " or die "\n\nError running {some
system command}\n\n\n";


__________________

William Ampeh (x3939)
Federal Reserve Board


Thread Previous | 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