[ILUG] ksh: What signal did trap trap?
Éibhear
eibhear.geo at yahoo.com
Thu Mar 31 12:26:34 IST 2005
Hi,
I am looking at a ksh script which has the following command:
trap "clean_up; report_error $ERR_CLOSE_DOWN; exit" 1 2 3 4 5 6 7 8 9 10 \
11 12 13 14 15
where clean_up() and report_error() are ksh functions also defined in the
script.
Is there a way (e.g. an environment variable?) for me to determine what
signal was trapped so that I can report it in report_error()?
Thanks,
Éibhear
--
Éibhear Ó hAnluain
Dublin
Ireland
More information about the ILUG
mailing list