Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

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/ $_ >$output 2>&1");
This will overwrite output file in while loop.
What if you append the output?
system("/home/me/ $_ >> $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

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://991509]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2017-03-28 03:56 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (326 votes). Check out past polls.