16 lines
990 B
Bash
16 lines
990 B
Bash
#!/bin/bash
|
|
while [ 1 ]
|
|
do
|
|
clear
|
|
echo "#####################################################"
|
|
echo "#####################################################"
|
|
echo "#### Request thumbshot (thumb_server.sh) : " $(ps ax | grep -v grep | grep thumb_server.sh | wc -l) && # count thumb_server.sh process
|
|
echo "#### Nb of thumbshot are made now (phantomjs) : " $(ps ax | grep -v grep | grep phantomjs | wc -l) && # count phantomjs process
|
|
echo "#### Nb of test error now (curl) : " $(ps ax | grep -v grep | grep curl | wc -l) # count thumb_server.sh => curl process
|
|
echo "#### Nb of optimize operation (optipng) : " $(ps ax | grep -v grep | grep optipng | wc -l) # count thumb_server.sh => curl process
|
|
echo "#####################################################"
|
|
echo "########### PRESS CTRL+C FOR STOP MONITOR ###########"
|
|
echo "#####################################################"
|
|
|
|
sleep 3 # 3 second between two refresh
|
|
done
|