Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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
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

    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 pondering the Monastery: (3)
As of 2015-09-02 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (55 votes), past polls