I have a shell script I'd like to run automatically every time I logout, shutdown or reboot.
Does anyone know where can I configure this in Ubuntu 10.10?
It is very simple. Go to "System" and then to "start up applications" (i am not with a english verision - but you wil remark it what i mean). Press on the button "add" and simlply fill the necessary things.
If you want only to run at shutdown: make a script with de shutdown command into it, but before this command line execute your task you want to do. To shutdown / poweroff Ubuntu Linux
sudo halt or sudo shutdown -h now To reboot Ubuntu Linux sudo reboot
Shutdown command can only be executed by the root. Change the shutdown command wrigths, this is the most simply way..