Capturing verbose exit codes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux