About UNIX shell trap, any relative function in Python ?

moonhkt moonhkt at gmail.com
Sat Dec 15 10:34:29 EST 2012


Hi All

Machine : AIX 5.3
Python : 2.6.2

In UNIX have, trap to run defined CLEAN_UP function. When  HUP INT
KILL STOP TERM will run CLEAN_UP function.

trap 'echo "\n\nProcessing Clean up"; CLEAN_UP; exit' HUP INT KILL
STOP TERM

Any relative function in Python ?

moonhkt



More information about the Python-list mailing list