Godo napisał(a):
Hello.
I have to run this "interactive" script ***always before*** that I shutting
down my PC.
konsole -name empa -title empa -e /home/gfreque/bin/empresa-parada &
I have to run into konsole because it asks me for a password (so interactive
script).
Sometimes, I forget to run this script and ***I need to avoid this***. As a
result, I have thought some alternatives:
1.- ./kde/Autostop --> it is not valid because the scripts are executed after
kde is closed, and I can not to type the passw.
2.- to build a script that:
a) run my script
b) shutdown the system
I would like to call to "shutdown application" that is called from "K menu"
to save sessions, etc.
c) and delete the shutdown option from the "K menu" (to avoid use it),
only for one user (my user) if it is possible. But, when I edit
the k-menu
this option is not available for me (as normal user, not root).
So, my question is: ¿which is the best way to do b) and c)?
did you consider creating init script, which would be executed at
switching to runlevels 0 (poweroff) and 6 (reboot)???
see `man update-rc.d` and /etc/init.d/skeleton (sample script)
kde has graphical manager to init scripts: ksysv
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]