[PLUG] Bash 'trap' command doesnt execute on SIGUSR1

Manas Alekar manas_alekar at yahoo.com
Tue Feb 8 01:31:44 IST 2011


> In the following bash code snippet; my main aim is to throw a string  
>'Unhandled exception occurred' using trap command.

Trap is a mechanism for signal handling. You cannot do exception handling with 
trap.  Reading: man 7 signal.

Manas




More information about the Plug-mail mailing list