Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2016-09-28 23:55 GMT
Find Nodes?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:

    Results (542 votes). Check out past polls.