pidof -s doesn't work

Gregory Nowak greg at romuald.net.eu.org
Thu Mar 10 14:18:39 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.

I've got /bin/pidof softlinked to /bin/killall, according to the
pidof(8) man page. The pidof(8) man page says:

"-s     Single shot - this instructs the program to only return one
pid."

Since running pidof with the name of a particular process returns
multiple pids for that process, I need to use the -s flag, since the
bash script I'm running pidof in needs to have a single pid returned,
and does not expect to see multiple pids. This expectation is safe,
since all I want to do is to check if an instance of that process is
running at all.

So, I do:

pidof -s process_name

, and I get back:

"process_name: unknown signal; killall -l lists signals."

Does anyone know how else I can get pidof to return a single pid?
Thanks in advance.

Greg


- -- 
Free domains: http://www.eu.org/ or mail dns-manager at EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFCMJ2P7s9z/XlyUyARAsk1AJ9xL2mFNqV5YsPzV+14l2p8ud3u4ACeN4Qm
pvywiUV3lX9XcTO1KIoZqn8=
=bfpL
-----END PGP SIGNATURE-----




More information about the Speakup mailing list