Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Think about Loose Coupling
 
PerlMonks  

Re: BOTH STOUT and STDERR to same file.

by aitap (Chaplain)
on Sep 03, 2012 at 19:02 UTC ( #991502=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");
It is very unsafe (imagine somebody writing "; rm -rf /*" in the input file). Try using IPC::Run, which does all redirections itself.
Sorry if my advice was wrong.


Comment on Re: BOTH STOUT and STDERR to same file.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2014-04-16 04:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (413 votes), past polls