Hi Everybody,
I want to run my own script on logout , i can use .bash_logout file... problem is this will work only for that particular user... i want to know the common file... so that script wil run for all the user...
Checkout /etc/bash.bash_logout for logout. What should work of course is using links in /etc/rc.d for the appropriate runlevel 0 and 6 with a K in their name, pointing to a stop script.
But you must be a super user to do this, As a normal user you can do only a logout operation , for that you can provide kill -9 -1 , Sending a kill signal to all the process.