Race condition between ps and grep (which one of them is finished
faster and in which order does ps output come up). At least newer
versions of procps support a pid argument to ps, so you can do
ps -aux 27231.
If you really need grep on a ps listing, e.g. to find processes of a
certain program, the standard way to do this is grepping out the grep:
ps -aux | grep "httpd" | grep -v grep
Not beautiful; direct supprt for this would surely be a nice extension to ps.
olaf
-- ___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____ __ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius> __/<_ >> Just as long as the wheels keep on turning round _)>(_)______________ I will live for the groove 'til the sun goes down << ____