Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Inconsistent system call from backticks vs system()

by Tanalis (Curate)
on Jul 01, 2003 at 14:15 UTC ( [id://270480]=note: print w/replies, xml ) Need Help??


in reply to Re: Inconsistent system call from backticks vs system()
in thread Inconsistent system call from backticks vs system()

The reason for the 2>&1 is to trap STDERR as well as STDOUT, as perlop explains in its examples.

I'm aware that system() doesn't trap output, and I don't intend using it, but unless I can get the backticks to work as I expect them to (system with STDOUT and STDERR trapping) I'll have to think of some other way to do this :/

Thanks for the feedback.

-- Foxcub
#include www.liquidfusion.org.uk

Replies are listed 'Best First'.
Re: Re: Re: Inconsistent system call from backticks vs system()
by cbro (Pilgrim) on Jul 01, 2003 at 14:27 UTC
    I know why you used 2>&1. But I'm saying that w/backticks you shouldn't need to trap. UPDATE: Deleted example Ahh, but w/further testing...I found that it was the C program printing. I did need the trap, and I was incorrect on my previous post. I apologize. (It did work fine w/the trap however. The post below mine makes a good point about the './' and a possible path issue)
    Chris

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found