Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: BOTH STOUT and STDERR to same file.

by remiah (Hermit)
on Sep 03, 2012 at 20:01 UTC ( #991509=note: print w/ replies, xml ) Need Help??


in reply to BOTH STOUT and STDERR to same file.

system("/home/me/ipinfo.pl $_ >$output 2>&1");
This will overwrite output file in while loop.
What if you append the output?
system("/home/me/ipinfo.pl $_ >> $output 2>&1");


Comment on Re: BOTH STOUT and STDERR to same file.
Select or Download Code
Re^2: BOTH STOUT and STDERR to same file.
by hmb104 (Sexton) on Sep 03, 2012 at 20:21 UTC

    All I needed was to append instead of re-write my lines. Thanks for the help :).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991509]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2014-07-29 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (226 votes), past polls