1 | 1 | simandl | #!/bin/sh |
2 | | | |
3 | | | # (c)2003 by Jan Krupa (krupaj@mobilnews.cz) |
4 | | | # http://www.mobilnews.cz/honza/ |
5 | | | |
6 | | | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/root/bin |
7 | | | export PATH |
8 | | | |
9 | | | STATS_PATH=/home/www/cgi-bin/netmap |
10 | | | STATS_PATH_DATA=$STATS_PATH/data |
11 | | | |
12 | 93 | simandl | NAME=jablonecka |
13 | 1 | simandl | |
14 | 93 | simandl | DATABASE=$STATS_PATH_DATA/$NAME.link |
15 | | | |
16 | 103 | simandl | $STATS_PATH/gen_ospf_link.pl | grep -Ev "infinity|atom|10.33.72.78|10.33.30.16|10.33.0.72|10.33.25.242" > $DATABASE.ospf |
17 | 29 | simandl | cat $DATABASE.basic | grep -v "^00" > $DATABASE |
18 | 1 | simandl | cat $DATABASE.ospf >> $DATABASE |
19 | | | |
20 | | | |
21 | | | for LINE in `/bin/ls -1 $STATS_PATH_DATA | /bin/grep .config`; do |
22 | | | $STATS_PATH/gen_onestatpict `/bin/echo $LINE | /bin/awk -F. '{ printf "%s", $1 }'` &>/dev/null |
23 | | | done |
24 | | | |
25 | 30 | simandl | convert /home/www/html/netmap/out/jablonecka.png -resize 160x95 /home/www/html/wm/images/prosek_netmap.png |
26 | 60 | simandl | convert /home/www/html/netmap/out/jablonecka.png -resize 660x440 /home/www/html/wm/images/netmap.jpg |
27 | 30 | simandl | |