#!/bin/sh


if [ $1 ]; then

    LOOP="$1"

else

    LOOP="5"

fi


echo "Sleep time is $LOOP sec."


while [ 1 ]; do

sh -c "ps aux | grep apache | wc -l ; netstat -an | grep :80 | grep ESTABLISHED | wc -l ; echo '----'"

sleep "$LOOP"

done

+ Recent posts