Writing to log file when script is killed

Harlin Seritt harlinseritt at yahoo.com
Sat Apr 30 05:04:33 EDT 2005


I am looking for a way for my script to write to a log file saying
something like this:

I was killed at time.asctime()

I would like to be able to do this if/when the script is killed by
means rather than my own. How in the world would I accomplish this?

Thanks,

Harlin




More information about the Python-list mailing list