Modify script
in my linux system , we have a program ( it is a binary program , I do not have the source code ) which will do something in the database . In the program , there is a exit function , when select exit , it will quit the program and go to linux shell , this program works fine.
Now , I would like to do modify for this program -- I would like to send out a mail to me once quitted this program , but how to know (detect) the program is quitted ?
thx
** may be my question is not clear enough , I will reply it if anything is not clear.
|