eqwatch &
is a perlscript that belongs to the three-some of processes running indefinitely on Holt. It is included in the startup
~/perlproc/START
cd ~/perlproc
eqwatch &
Location: (symlinks) /home/bin/eqwatch -> /home/hgs/perlproc/eqwatch.pl -> /home/hgs/perlproc/eqwatch.ev.pl
Standard execution needs no arguments. Stop it preferably by finding its PID and issue a kill.
Every minute: Looks whether there are new earthquake messages in the mailboxOptions:
If yes, makes a text graphic: The earthquake message shown on
monitor-plot.html below the hourly diagram, yellow background.
Every hour: Renew the shortlist using eqlookup.pl
-now - run with debug and without sleepHard wires:
-onetrip - for test and development: run just once
(default: run indefinitely with hard-wired sleep 60 seconds and without much messaging.)
mailbox = /var/mail/hgs
sleep = 60
As an example, G1-plot-hour (the program that creates the main diagram for the retro-agent) issues this command sequence.
Instructions here are for the case that the script needs renewal.
To make the "plot" (the events text in graphic form on the monitor page), issue
eqlookup.pl <date>
date forms recognized:
YYYY-MM-DD-HH
YYYY-MM-DD HH
YYYY-MM-DD:HH
YYYY-MM-DD_HH
The hour HH is mandatory though.
Daily earthquake shortlist update:
No arguments. Processes the mailbox on this machine and potentially additional copied mailboxes.
~/Seism/USGS/USGS-ENS-from-ore.mbox has been copied 2014-04-20.
Currently, we use ~/Seism/USGS/USGS-ENS.mbox (hard-wired; 2022-01-21)
The script fails before 2011-12-11 because of a change in format request (it cannot handle the html-version).
Therefore, the old data is added from ~/www/SCG/ENS-mail.txt
Let cron run this script a few times per day.
ens-shortlist2htmlLocation: /home/hgs/Seism/USGS/ens-shortlist2html
A csh script. It updates the html file /home/hgs/www/SCG/ens-eqtimes-daily-upd.htmlINPUT:
It's a cron job running every hour minutes. Also called in eqwatch and ens-daily-update
/home/hgs/www/SCG/ens-eqtimes-daily-upd.html contains clickable links to call the retro-agent
SCG response for TODAY 04 43 17 5.0 us-70003dri 35.360 N 27.694 E Dodecanese Islands, Greece
SCG response for TODAY 02 48 52 5.4 us-70003dpt 43.185 N 29.105 W northern Mid-Atlantic Ridge
SCG response for 2019-04-27 23 25 58 4.3 us-70003d5r 37.583 N 20.678 E Ionian Sea
SCG response for 2019-04-27 15 07 58 4.4 us-70003cz6 37.555 N 20.360 E Ionian Sea
with links spelling out like e.g.
http://holt.oso.chalmers.se/cgi-bin/SCG-monitor.cgi?name1=2019-04-27&name2=15&name3=00&name4=10