#!/sbin/sh # #/web_disc/ccp14/cron_scripts/sysinfo/wap.script # http://srscss3.dl.ac.uk/status/status.asp /sbin/killall -9 snarf2 /sbin/killall -9 html2txt cd /web_disc/ccp14/cron_scripts/sysinfo rm -f /web_disc/ccp14/cron_scripts/sysinfo/srsstatus.html rm -f /web_disc/ccp14/cron_scripts/sysinfo/info.txt wait /usr/local/bin/snarf2 -q -n http://srscss3.dl.ac.uk/status/status.asp wait mv /web_disc/ccp14/cron_scripts/sysinfo/status.asp /web_disc/ccp14/cron_scripts/sysinfo/status.html wait # grep -v \< /web_disc/ccp14/cron_scripts/sysinfo/srsstatus.html > info.txt /usr/local/bin/html2txt -r /web_disc/ccp14/cron_scripts/sysinfo/info.txt /web_disc/ccp14/cron_scripts/sysinfo/status.html wait /usr/local/bin/replace -e -f SRS\ Status T1 -a Current \
Crnt -a Lifetime \
Life -a Energy \
Erg -a Wigglers: \
Wigglers:\
-a Tesla T -a Ports\ Open\:\ 1\ 2\ 3\ 4\ 5\ 5U\ 6\ 6W\ 7\ 8\ 9 \
Summary: -a 12\ 13R\ 13D\ 14W\ 16A\ 16B\ SLM \
info.txt wait #Make a copy for the graphics based SRS Status Script so they don't interfer cp /web_disc/ccp14/cron_scripts/sysinfo/info.txt /web_disc/ccp14/cron_scripts/sysinfo/info2.txt wait cat /web_disc/ccp14/cron_scripts/sysinfo/head.txt > index.wml wait cat /web_disc/ccp14/cron_scripts/sysinfo/info.txt >> index.wml wait cat /web_disc/ccp14/cron_scripts/sysinfo/tail.txt >> index.wml wait cp /web_disc/ccp14/cron_scripts/sysinfo/index.wml /web_disc/ccp14/web_area/wap/