${?} or $?

contains exit status of last command run,

I believe

____________________________________________________________
Kervin Pierre, CCNA

The early buyer gets the bugs.
-- Chad McClung, Tech Wisdom #5

On Thu, 3 Feb 2000, [iso-8859-1] Sebasti�n Ferraro wrote:

> Hi,
> 
> I want to execute a command from within a bash script, and I need to use
> its exit status, like in
> 
>       if [ <exit_status_of command> -eq 1 ] ; then ...
> 
> How could I do this?
> 
> The command to be called is the caller script, in a recursive fashion,
> so I can't use exported variables.
> 
> I am sure the answer is on the bash man page, but I can't find it.
> 
> 
> Regards,
> 
> Seba
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to [EMAIL PROTECTED]
> Please read the FAQ at http://www.linux-learn.org/faqs
> 


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to