Is there a way to get a rolling count of the number of processes running, especially of tasks which match a specific string?
Something like top | grep TaskName | wc -l
CodePudding user response:
Like this?
watch -n 1 'pgrep -c TaskName'
Is there a way to get a rolling count of the number of processes running, especially of tasks which match a specific string?
Something like top | grep TaskName | wc -l
CodePudding user response:
Like this?
watch -n 1 'pgrep -c TaskName'