pidof killall
Bernhard Fischer
rep.nop at aon.at
Tue Oct 24 19:54:51 UTC 2006
On Tue, Oct 24, 2006 at 11:49:33AM -0700, Larry Brigman wrote:
>It seems that both of these applets don't always work correctly.
>In version 1.2.1 if
>you use the start-stop-daemon to run telnetd the pidof will find the
>pid of the program
>if you run telnetd from the command line the pidof and also killall
>won't find the program
>even though they show up in the ps command.
You'd need to provide the actual commands you used where it didn't work
for you.
s38:/tmp/busybox# ./telnetd
s38 login:
bernhard at s38:/tmp/busybox$ ./busybox pidof telnetd
11182
Login timed out after 60 seconds.
and
s38:/tmp/busybox# PATH=":$PATH" ./telnetd
s38 login:
bernhard at s38:/tmp/busybox$ ./busybox pidof telnetd
11414
Login timed out after 60 seconds.
Works for me.
More information about the busybox
mailing list