Programmatically Getting Process ID

Samuel A. Falvo II kc5tja at garnet.armored.net
Fri Mar 3 17:06:39 EST 2000


Is there a way that I can programmatically obtain a process ID for a
particularly named process?  For example, I'd like to be able to do this:

	pid = get_pid_of( "radiusd" )
	kill( pid, SIGHUP )

What would get_pid_of() be defined as?

Thanks.

-- 
KC5TJA/6, DM13, QRP-L #1447
Samuel A. Falvo II
Oceanside, CA



More information about the Python-list mailing list