Capturing verbose exit codes

Suvayu Ali fatkasuvayu+linux at gmail.com
Sat Apr 3 20:53:40 UTC 2010


Hi,

Whenever some job is sent to the background and it finishes, it displays 
a message on the shell with the exit code. Something like this;

> [1]-  Done                    emacs
> [2]+  Terminated              gedit

I understand that I can get the exit code with $? but is there some way 
I can get the associated message (Done/Terminated/Sementation Fault...) 
with the exit code?

I want to use this in shell function/scripts to notify me whether any of 
my submitted jobs succeeded or failed, and if they failed then with what 
exit code.

Thanks for any insights.

-- 
Suvayu

Open source is the future. It sets us free.


More information about the users mailing list