Execute BASH script on shutdown
4465
Execute a script upon logout/reboot/shutdown in Ubuntu
126027
Run bash script at login stored in the home folder?
157283
How to keep Bash running after command execution?
139723
Run a command when system is idle and when is active again
151386
What is the shutdown command?
4860
How to run scripts on start up?
94950
How do I limit the running time of a BASH script
72160
Why would a shutdown script NOT run?
44229
Run simple bash script to start applications at login
30341
Is there a windows app or simple scripting way to persuade windows to shutdown after a process ends?
34476
Launch a shell command with in a python script, wait for the termination and return to the script
21965
What command is executed when shutdown from the graphical menu in 14.04?
722
How can I automatically shutdown the system after a specific time?
24800
Execute bash scripts on entering a directory
102545
Shutdown when laptop lid closed
83258
How to schedule a task to run when shutting down windows
9870
How to set a cron job to run a shell script?