Re: Notifications when process is killed

2011-08-03 Thread chrisallick
On Aug 1, 11:39 am, Andrea Di Mario wrote: > Thanks Thomas, it is what i'm looking for. > > Regards > > -- > Andrea Di Mario Catch a Kill: def signal_handler(signal, frame): print "Received exit command." #server.running = False sys.exit() signal.signal(signal.SIGINT, si

Re: Notifications when process is killed

2011-08-03 Thread chrisallick
On Aug 1, 5:56 am, Andrea Di Mario wrote: > Hi, i've created a twisted server application and i want that the > server send me a message when someone stops or kills the process. > I want to override reactor.stop(), but do this way send me message > when the process is stopped by a system kill? > C

HID Device Drivers for OS X

2011-08-03 Thread chrisallick
Hi, I spent almost all day trying to figure out how to capture a click from this button: http://www.dreamcheeky.com/big-red-button I tried libusb, PyUSB, HIDAPI and probably a couple other things. No luck. My understanding is that libusb won't allow me to get at the interface and the example