On Wednesday 26 March 2008, Bastian Blank wrote: > This matches the behaviour of the sysvinit pidof: > | $ pidof sh > | 8402 > | $ pidof test.sh > | $ ps x | grep test.sh > | 8402 pts/4 S+ 0:00 /bin/sh ./test.sh
Hmm. Right, it does. Problem then is that sysvinit pidof has the -x option, but busybox doesn't: bysybox: 452 root 1408 S /bin/sh /sbin/debian-installer 2977 root 1968 S /bin/sh /var/lib/dpkg/info/network-console.postinst c 3018 root 1964 S /bin/sh /sbin/debian-installer /bin/network-console-m 3031 root 1964 S /bin/sh -e /var/lib/dpkg/info/di-utils-shell.postinst 3035 root 1964 S /bin/sh -e /bin/debconf-disconnect /bin/sh 3036 root 1968 S /bin/sh # pidof sh 3036 3035 3031 3018 2977 452 # pidof -x debian-installer pidof: invalid option -- x BusyBox v1.9.1 (2008-03-23 01:51:09 MDT) multi-call binary Usage: pidof process-name [OPTION] [process-name...] sysvinit: 4875 ? Ss 0:00 /bin/sh /usr/bin/x-session-manager 19237 pts/3 S+ 0:00 /bin/sh /home/fjp/bin/nssh [EMAIL PROTECTED] $ pidof sh 19237 4875 $ pidof -x nssh 19237 So I guess this should be turned into an upstream wishlist bug to implement support for -x as a substitute for the old behavior. Cheers, FJP
signature.asc
Description: This is a digitally signed message part.