Comment Re:ps auxw (Score 1) 382
and the really long way:
ps -ef | grep firefox | grep -v grep| wc -l
I use this in a few scripts when checking for a count of specific processes, simply because regardless of *nix version,you can almost guarantee ps, grep, and wc exist but depending on what version, you may not have some of the "extra" features of any of them available. yes, i have run into this and had to re-write it this way to work around it.