Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Print STDOUT and STDERR to file and to screen

by Bloodnok (Vicar)
on Aug 02, 2009 at 22:54 UTC ( [id://785297]=note: print w/replies, xml ) Need Help??


in reply to Print STDOUT and STDERR to file and to screen

Hmmm, I'm interested as to the difference in the manner with which you treat the calls to open ... when open'ing the file you check for failure, but you fail (pun intended) so to do with the command.

I think you'll find that your requirement will be met if you chose to do so i.e.

open CMD, "some_command |" or lprint("Command: some_command failed - $ +!"), exit 1;

A user level that continues to overstate my experience :-))

Log In?
Username:
Password:

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

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

    No recent polls found