Re: Writing to log file when script is killed



If you run on unix you can use the signal module to intercept a kill -
see http://docs.python.org/lib/node368.html for a quick example

.



Relevant Pages

  • Re: Writing to log file when script is killed
    ... >> If you run on unix you can use the signal module to intercept a kill - ... > You cannot intercept a kill (that's the whole meaning of SIGKILL, ... Read up on UNIX signal handling. ...
    (comp.lang.python)
  • Re: On the trail of the Self Kervorkianizing PSU
    ... I've had that same exact thing happen a few times with broken power buttons. ... Never saw it 'kill' the machine entirely. ... William ... Prev by Date: ...
    (comp.sys.ibm.ps2.hardware)
  • Re: [OT] Sudoku
    ... because it would be a terrible insult to anyone to kill ... Terry Pratchett, Pyramids. ... Prev by Date: ...
    (rec.sport.soccer)
  • Protect File Saved
    ... I wonder if there is way to protect the file and kill the macros after the ... Maperalia. ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • Re: REQ: Please post Federers matches to alt.binaries.multimedia.
    ... i am in hiding. ... they kill people who know ... the truth about what they are up to. ... Prev by Date: ...
    (rec.sport.tennis)