Re: Pipes and Erroneous Exit Status
From: Ed Morton (morton_at_lsupcaemnt.com)
Date: 03/01/05
- Next message: Martijn Lievaart: "Re: how to find the extension of a file?"
- Previous message: absinth: "Re: Ignoring IFS White Space?"
- In reply to: absinth: "Pipes and Erroneous Exit Status"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 23:55:06 -0600
absinth wrote:
> I'm running an SQL query application and piping that into sed for
> post-processing.
>
> E.g. sqlPlus ... | sed ....
>
> How do I capture the exit status from sqlPlus and exit on erroneous
> status?
>
> For example if someone enters an invalid query sqlPlus would quit with
> a non zero exit status but this output is piped to sed and sed
> completes successfully changing the exit status to 0. Is there a way
> around this?
>
See question 13 in the FAQ (http://home.comcast.net/~j.p.h/cus-faq.html#M).
Ed.
- Next message: Martijn Lievaart: "Re: how to find the extension of a file?"
- Previous message: absinth: "Re: Ignoring IFS White Space?"
- In reply to: absinth: "Pipes and Erroneous Exit Status"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|