This is perhaps illustrative of what it does:
seki-strombrg> echo `Pidof -S xinetd`
/Dcs/seki/strombrg/bin/Pidof: Single match found: "2621 xinetd -stayalive -pidfile /var/run/xinetd.pid"
2621
seki-strombrg> echo `pidof -s gnome-terminal`
0) 5414 /usr/bin/gnome-terminal
1) 19407 gnome-terminal --geometry 80x45 -e /tmp/sshgui-19396-11194866388735
Enter number corresponding to process: 0
5414
You can e-mail the author with questions or comments: