Run script when user logged out; Ubuntu 16.04
48334
How can I run a local command (to run a script) on (just before) log out of a Unity session?
21756
Run script on closing web page
114891
MacBook Air/Pro: run script upon lid close?
23508
Script at Startup
138665
How to run a command before the machine automatically shuts down?
108479
How to run a script on screen lock/unlock?
21548
Run adduser non-interactively
62680
Automatic Logout after 15 minutes of inactive in php
18192
Run the script file after 5 or 10 min after restarting the system
63198
How can I logout from the GUI using CLI?
39434
How to add a script to Startup Applications from the command line?
74271
Run specific scripts/settings on several occassions (connect mouse, connect screen etc)
77401
How do I log every command executed by a user?
153189
Windows 7 - How to run a script at shutdown but not at logoff
127036
Execute script before shutting down
27288
Possible to run scripts on sleep and wake?
85942
How can I make a process I start during an SSH session run after the session has ended?