new final sequence
[wyse_ntpd.git] / src / buildroot-2013.05 / custom / filesystem / opt / stats_daemon.sh
1 #!/bin/sh
2
3 cldate=`date '+%s'`
4         
5 while(true)
6 do
7         date '+%s' >> /var/www/data/ntp.log.$cldate
8         ntpq -c lpe -n |grep "127.127.20" >> /var/www/data/ntp.log.$cldate
9
10         find /var/www/data/stats -mtime +2 -type f -exec rm {} \;
11
12         sleep 30
13 done