I'm not really sure why but both pgrep and pkill from the procps package result in an uptime message instead of the expected command.
A screenshot is perhaps clearer:
Any ideas how to work around this? I was trying to use pkill from a script and ran into this confusing output. The screenshot shows only pgrep but the output is the same for pkill.
I'm not really sure why but both
pgrep
andpkill
from theprocps
package result in anuptime
message instead of the expected command.A screenshot is perhaps clearer:
Any ideas how to work around this? I was trying to use
pkill
from a script and ran into this confusing output. The screenshot shows onlypgrep
but the output is the same forpkill
.