Post #853638
2026-03-27 14:26 UTC
The command
$ ps -u http
exits with rc=1 when the user does not exist. fair and to be expected, there's an error in the arguments.
But did you know it also exits with rc=1 when the user exists but has no running processes?
I consider "no running processes" to be a completely valid and successful result, but apparently ps - and maybe posix - has different ideas.
Replies (0)
No replies.