[CentOS] Unable to execute a script , Permission denied
m.roth at 5-cent.us
m.roth at 5-cent.us
Tue May 25 14:53:54 UTC 2010
> m.roth at 5-cent.us wrote:
>> Bowie wrote:
>>
>>> ps -C java -o thcount | awk ' { total += $1 } END { print total } '
>>>
>>
>> Now, as dearly as I love awk,
>> ps -C java --no-heading | wc -l
>>
>
> You are counting processes, the original is counting threads.
>
> $ ps -C java -o thcount | awk ' { total += $1 } END { print total } '
> 29
>
> $ ps -C java --no-heading | wc -l
> 1
So?
$ ps -C java -o thcount --no-heading | wc -l
mark "shorter is us"
More information about the CentOS
mailing list