handling kill signal

2009-08-06 Thread sanju ps
I want to handle a kill signal..In my program i wrote like this def handler(signum, frame): print "Signal",signum delete_temp_file() exit(1) signal.signal(signal.SIGTERM, handler) And when i tried pkill processid .program is exited but not deleting the temp file -- http://mail.python

Launch my application if its not running

2009-08-05 Thread sanju ps
How to check whether my gui application is running or not.If its already running i have to quit my program other wise i need to launch my program. Can anybody suggest a solution to this Regards Sanju -- http://mail.python.org/mailman/listinfo/python-list

python _binary_ code

2009-07-13 Thread sanju ps
Hi Can anyone give me solution to create a python binary file (bytecode) other than pyc file .So my source code be secure.. I am working on ubuntu 9.04 with python2.6.. I Regards Sanju -- http://mail.python.org/mailman/listinfo/python-list