in reply to BOTH STOUT and STDERR to same file.
This will overwrite output file in while loop.system("/home/me/ipinfo.pl $_ >$output 2>&1");
What if you append the output?
system("/home/me/ipinfo.pl $_ >> $output 2>&1");
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: BOTH STOUT and STDERR to same file.
by hmb104 (Sexton) on Sep 03, 2012 at 20:21 UTC |
In Section
Seekers of Perl Wisdom