http://www.perlmonks.org?node_id=700930


in reply to print on reboot or process shutdown

Hello!

Different OSes are going have slightly different signals. I found this for windows: