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
Last modified
13 years ago
Last modified on Mar 21, 2013, 4:23:21 PM
Note:
See TracWiki
for help on using the wiki.
