Programmatically Getting Process ID

Samuel A. Falvo II kc5tja at
Fri Mar 3 23:06:39 CET 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?


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

More information about the Python-list mailing list