💻 Software
Run Script on logout/ shutdown ubuntu
Fresh7 days ago
Mar 15, 202621506 viewsConfidence Score0%
0%
Problem
I want to run some commands every time a user of an ubuntu 9.10 machine logs out or shuts down. What is the best way to do this? Every user uses gnome if that helps.
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Run Script on logout/ shutdown ubuntu
Low Risk
After some Googling I found How to run a script on logout? which says to add the script to $HOME/.bash_logout. If that doesn't work, add to /etc/gdm/PostSession/Default so it executes the logout script properly. Seeing as before shutdown the user is…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix