All things technology, including programming and methodologies.
ps -L -o pid= -p | wc -l
on OSX(also works on linux I believe)
NUM=`ps M | wc -l | xargs` && expr $NUM - 1
No comments:
Post a Comment