jablonka.czprosek.czf

mapstats

Subversion Repositories:
[/] [gen_mapstats] - Diff between revs 1 and 9

Show entire file Ignore whitespace

Rev 1 Rev 9
Line 5... Line 5...
# Changes by Jirka Klir (Unreal][) for Mapstats v3.0 AJAX. http://www.jklir.net # Changes by Jirka Klir (Unreal][) for Mapstats v3.0 AJAX. http://www.jklir.net
   
# -- Configuration --------------------------------------------------- # -- Configuration ---------------------------------------------------
# Mapstats directory # Mapstats directory
STATS_PATH=/var/www/www.kobylisy.czf/mapstats STATS_PATH=/var/www/www.kobylisy.czf/mapstats
   
cd $STATS_PATH  
   
# Program paths # Program paths
PING_PATH=ping PING_PATH=ping
NMAP_PATH=nmap NMAP_PATH=nmap
FPING_PATH=fping FPING_PATH=fping
   
# STATS_TYPE - ping, fping or nmap # STATS_TYPE - ping, fping or nmap
STATS_TYPE=ping STATS_TYPE=ping
   
  # --------------------------------------------------------------------
# Don't change anything bellow this line if you are not sure what # Don't change anything bellow this line if you are not sure what
# you are doing ;) # you are doing ;)
# -------------------------------------------------------------------- # --------------------------------------------------------------------
   
for LINE in `ls -1 $STATS_PATH_DATA | grep .nodes`; do cd $STATS_PATH
   
  for LINE in `ls -1 $STATS_PATH | grep .nodes`; do
a_file=`echo $LINE | awk -F. '{ printf "%s", $1 }'` a_file=`echo $LINE | awk -F. '{ printf "%s", $1 }'`
   
file_comp=$STATS_PATH/$a_file.nodes file_comp=$STATS_PATH/$a_file.nodes
file_state=$STATS_PATH/$a_file.state file_state=$STATS_PATH/$a_file.state
   

Powered by WebSVN 2.2.1