smeserver-phpsysinfo/root/opt/phpsysinfo/sample/plugin_psstatus/README

3 lines
151 B
Plaintext

FILE CONTENT OF
psstatus ps=("apache2" "mysqld" "sshd"); for((i=0;i<${#ps};i++)); do echo ${ps[$i]} "|" `pidof -s ${ps[$i]}` ;done