Hi Everybody, I want to ask, how to check for system shutdown? I mean I want to write a code, under linux, that at shutdown should do something. So how to know if the user is shutting down. Thank you very much, Mohammed.