Changes between Initial Version and Version 1 of mf-php5-cgi-processes


Ignore:
Timestamp:
Mar 21, 2013, 12:23:21 PM (7 years ago)
Author:
Ross
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • mf-php5-cgi-processes

    v1 v1  
     1[[TranslatedPages]]
     2= mf-php5-cgi-processes =
     3== Synopsis ==
     4Find all php5-cgi processes and list them in by user and the total number for each user.
     5
     6== Description ==
     7This script runs the following command:
     8{{{
     9total=$(ps -eFH| grep php5-cgi | wc -l)
     10ps -eFH | awk '/php5-cgi/{print $1}' | sort | uniq -c | sort -n
     11printf "Total: %s\n" "$total"
     12}}}
     13
     14== Examples ==
     15{{{
     160 lucy:~# mf-php5-cgi-processes
     17      2 4403
     18      2 root
     19      4 chiapas
     20      6 6396
     21     11 5050
     22     23 3580
     23Total: 49
     240 lucy:~#
     25}}}
     26
     27== See Also ==
     28
     29
     30----
     31'''[wiki:how-to/servers/mf-commands << MayFirst Commands]'''