#!/bin/bash while [ 1 ]; do #num_users=`cat /var/shaper/bitrate_user_sh.0.old | grep -c ""` num_users=0 #max_users=`cat /var/shaper/max_user` max_users=23 if [ "$num_users" > "$max_users" ] ; then echo 1 #echo "$num_users" > /var/shaper/max_user fi sleep 1 done