howto send signal to a OS daemon on linux

bheemesh v bheemesh at gmail.com
Tue Nov 24 18:17:36 CET 2009


Hello,

Greetings.

I am a newbie to python programming.
Can anybody please help me with options to send a user defined signal to a
OS daemon (example a daemon snmpd).

I tried finding options to get pid of a daemon (process) by passing it's
name.
Once a pid is available thenwe can use os.kill(signal_type, signalhandler);

But how to get pid of a process by passing it's name and then how to send
signal whichis userdefind.

Kindly let me know.
Thanks in advance.

Best Regards,
Bheemesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20091124/08b06a50/attachment.html>


More information about the Python-list mailing list