tekion wrote: > I have a while iterates forever. I would like to trap a SIGTERM signal > and execute some clean up code. How would I do this in python? Thanks. look into module "signal" Diez