Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: Capture Exit Code Using Pipe & Tee

by ikegami (Patriarch)
on Jan 31, 2007 at 22:53 UTC ( [id://597660]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Capture Exit Code Using Pipe & Tee
in thread Capture Exit Code Using Pipe & Tee

No, it doesn't necessarily get it from the tee command, and it always gets it from the shell when the it is called. I can think of three circumstances where it does not.

  • If the shell can't execute tee, the error code would not be that of tee.
  • If the shell exits due to a signal or a core dump, the error code would not be that of tee. (Right?)
  • If the script runs under Windows and tee returns an error code greater than 1, the error code returned would be 1.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-24 20:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found