#! /bin/tcsh
# cd /mnt/home/akira/public_html/cgi-bin/scheduler
echo "Content-type: image/png"
# echo "Content-type: text/plain"
echo ""
set FILE1=/tmp/graph.temp.1.$$
set FILE2=/tmp/graph.temp.2.$$
cat $2 | ./sched $1 > $FILE1
set LOAD=`cat $FILE1 | tail -n +2 | head -1`
cat $FILE1 | tail -n +3 > $FILE2
./graphcmds $FILE2 $LOAD | /usr/local/bin/gnuplot
rm -f $2
rm -f $FILE1
rm -f $FILE2