[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to run a program before logging out



Incoming from Toshiro:
> Anybody knows if there is a way to execute some command(s) before logging out 
> from a gnome session?

Create a ~/.bash_logout

  (0) keeling /home/keeling_ cat .bash_logout 
  (cd ; date ; uptime ; echo " ") >> /home/keeling/dox/uptime.txt

This will be run for every instance of bash that exits, so you may
need to wrap what you're doing with conditions.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)               http://www.spots.ab.ca/~keeling 
- -



Reply to: