Version 1 (modified by 11 years ago) ( diff ) | ,
---|
mf-php5-cgi-processes
Synopsis
Find all php5-cgi processes and list them in by user and the total number for each user.
Description
This script runs the following command:
total=$(ps -eFH| grep php5-cgi | wc -l) ps -eFH | awk '/php5-cgi/{print $1}' | sort | uniq -c | sort -n printf "Total: %s\n" "$total"
Examples
0 lucy:~# mf-php5-cgi-processes 2 4403 2 root 4 chiapas 6 6396 11 5050 23 3580 Total: 49 0 lucy:~#
See Also
Note:
See TracWiki
for help on using the wiki.