Soshot/bin/mon.sh

16 lines
802 B
Bash
Raw Normal View History

2013-03-19 17:07:13 +01:00
#!/bin/bash
while [ 1 ]
do
clear
2013-03-26 15:23:38 +01:00
echo "#################################################"
echo "#################################################"
echo "#### Total request thumbshot : " $(ps -e | grep -v grep | grep thumb_server.sh | wc -l) && # count thumb_server.sh process
echo "#### Number of thumbshot are made now : " $(ps -e | grep -v grep | grep phantomjs | wc -l) && # count phantomjs process
echo "#### Number of test error now : " $(ps -e | grep -v grep | grep curl | wc -l) # count thumb_server.sh => curl process
echo "#################################################"
echo "######### PRESS CTRL+C FOR STOP MONITOR #########"
echo "#################################################"
2013-05-03 10:45:13 +02:00
2013-03-19 17:07:13 +01:00
sleep 3 # 3 second between two refresh
done