Hello
i have been working on a shutdown script,
http://www.happytrees.org/main/main-...bit/bed_pl.txt,
but i want the script to send a 'warning' kill signal to all programs, a minute before shutdown. The idea is, if I have a document open and unsaved in openoffice, it would cause office to ask is i wanted to save before exiting
Also i would want it to close prograns properly, so there is no file damage.
I can figure out the right kill signals
man kill: kill signals
<pre>
TERM 15 exit
USR1 exit
USR2 exit
VTALRM exit
STKFLT exit may not be implemented
PWR ignore may exit on some systems
WINCH ignore
CHLD ignore
URG ignore
TSTP stop may interact with the shell
TTIN stop may interact with the shell
TTOU stop may interact with the shell
STOP stop this signal may not be blocked
CONT restart continue if stopped, otherwise ignore
ABRT 6 core
FPE 8 core
ILL 4 core
QUIT 3 core
SEGV 11 core
TRAP 5 core
SYS core may not be implemented
EMT core may not be implemented
BUS core core dump may fail
XCPU core core dump may fail
XFSZ core core dump may fail
</pre>
thanks,
Jeff
http://en.howto.wikia.com/wiki/Main_Page