![]() |
where to write my logout script?
Hi,everyone,I have a problem about system log out.
My program is running when the system log out.The system will kill the process of my program.What I want to do is to do some clean operations before the process is killed.How can I achieve this?Is there scripts where I can write my clean operations? Any advise is appreciated. |
You can try to put your commands in $HOME/.bash_logout.
|
Do you mean it dies
1. when you logout OR 2. when the system shuts down For 1. disconnect the prog from the terminal session nohup your_prog & 2. Add an interrupt handler to your program |
All times are GMT -5. The time now is 08:13 AM. |