Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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]
[LanX]: aha Sandy Koufax is a Jewish hero because he didn't play on Jom Kippur, hence stonecolddevin's Sig is expressing Jewish "pride" ?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (14)
As of 2017-05-24 21:22 GMT
Find Nodes?
    Voting Booth?