Try another presentation
This commit is contained in:
parent
28bab5533a
commit
21f406bd6b
1 changed files with 8 additions and 6 deletions
14
bin/mon.sh
14
bin/mon.sh
|
@ -1,12 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "PRESS CTRL+C FOR STOP MONITOR"
|
|
||||||
sleep 5
|
|
||||||
while [ 1 ]
|
while [ 1 ]
|
||||||
do
|
do
|
||||||
clear
|
clear
|
||||||
echo "################################"
|
echo "#################################################"
|
||||||
echo "Total request thumbshot : " $(ps -e | grep -v grep | grep thumb_ | wc -l) && # count thumb_server.sh process
|
echo "#################################################"
|
||||||
echo "Number of thumbshot are made now : " $(ps -e | grep -v grep | grep phantomjs | wc -l) && # count phantomjs process
|
echo "#### Total request thumbshot : " $(ps -e | grep -v grep | grep thumb_server.sh | wc -l) && # count thumb_server.sh process
|
||||||
echo "Number of test error now : " $(ps -e | grep -v grep | grep curl | wc -l) # count thumb_server.sh => curl 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 "#################################################"
|
||||||
sleep 3 # 3 second between two refresh
|
sleep 3 # 3 second between two refresh
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue