[CentOS] Getting the return value of the last command run
Dotan Cohen
dotancohen at gmail.comMon May 30 15:23:22 UTC 2011
- Previous message: [CentOS] Getting the return value of the last command run
- Next message: [CentOS] Getting the return value of the last command run
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, May 30, 2011 at 18:05, Ljubomir Ljubojevic <office at plnet.rs> wrote: > Take notice that you can use $? *only* once. So if you ever need to > reuse that status, you must first assign exit code to a variable and > then evaluate variable. > Actually, that was kink of obvious to me, but good thing that you pointed it out. Thanks. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com
- Previous message: [CentOS] Getting the return value of the last command run
- Next message: [CentOS] Getting the return value of the last command run
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list