jablonka.czprosek.czf

netmap

Subversion Repositories:
[/] [gen_stats_ospf] - Rev 20 Go to most recent revision

Compare with Previous - Blame - Download


#!/bin/sh

# (c)2003 by Jan Krupa (krupaj@mobilnews.cz)
# http://www.mobilnews.cz/honza/

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin
export PATH

STATS_PATH=/home/www/cgi-bin/netmap
STATS_PATH_DATA=$STATS_PATH/data

NAME="jablonecka"
DATABASE=$STATS_PATH/data/$NAME.link

$STATS_PATH/gen_ospf_link.pl > $DATABASE.ospf
cat $DATABASE.basic > $DATABASE
cat $DATABASE.ospf >> $DATABASE


for LINE in `/bin/ls -1 $STATS_PATH_DATA | /bin/grep .config`; do
  $STATS_PATH/gen_onestatpict `/bin/echo $LINE | /bin/awk -F. '{ printf "%s", $1 }'` &>/dev/null
done

convert /home/www/html/netmap/out/jablonecka.png -resize 160x95 /home/www/html/wm/images/prosek_netmap.png

Powered by WebSVN 2.2.1