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

Reply via email to