jablonka.czprosek.czf

netmap

Subversion Repositories:
[/] [gen_onestatpict] - Rev 107 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
STATS_PATH_OUT=$STATS_PATH/out
STATS_PATH_TMP=$STATS_PATH/tmp
PHP_PATH=/usr/bin/php

# STATS_TYPE can be ping, fping or nmap
STATS_TYPE=ping

$STATS_PATH/gen_onestat_$STATS_TYPE $STATS_PATH_DATA/$1.comp > $STATS_PATH_DATA/$1.state
$PHP_PATH -q $STATS_PATH/calstats.php $STATS_PATH_DATA/$1 > $STATS_PATH_TMP/$1.png
/bin/mv -f $STATS_PATH_TMP/$1.png $STATS_PATH_OUT

Powered by WebSVN 2.2.1