[CentOS] Unable to execute a script , Permission denied
m.roth at 5-cent.us
m.roth at 5-cent.usTue May 25 15:30:55 UTC 2010
- Previous message: [CentOS] Unable to execute a script , Permission denied
- Next message: [CentOS] Unable to execute a script , Permission denied
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Les wrote: > On 5/25/2010 9:55 AM, m.roth at 5-cent.us wrote: >>> 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 >> >> Oh, I take that back - I see what's going on, a and yeah, you're right. > > How about: > ps H -C java |wc -l No joy. On one of our servers, if I do that, I show three processes, but if I use the thread count flag, I get THCNT 63 59 62 and the original poster wanted the total threadcount. mark
- Previous message: [CentOS] Unable to execute a script , Permission denied
- Next message: [CentOS] Unable to execute a script , Permission denied
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list