Tutorials/Course201008: update.sh

File update.sh, 666 bytes (added by MarcusWalther, 9 years ago)

Script for updating virtual machine with Ecuador 12-Aug-2010 event

Line 
1#! /bin/tcsh
2
3set target=$HOME
4#set target=/tmp/xyx
5
6cd /tmp/
7wget http://www.seismic-handler.org/portal/chrome/site/ecuador-20100812.tar.bz2
8wget http://www.seismic-handler.org/portal/raw-attachment/wiki/Tutorials/Course201008/bgr2010psbx.evt
9wget http://www.seismic-handler.org/portal/raw-attachment/wiki/Tutorials/Course201008/bgr2010psbx.evt.xml
10
11mkdir -p $target/Ecuador
12
13cp /tmp/bgr2010psbx.evt.xml $target
14cp /tmp/bgr2010psbx.evt $target
15
16cd $target/Ecuador
17tar xf /tmp/ecuador-20100812.tar.bz2
18
19$SEED_PROG/sfdlist_l.csh '*' $target/Ecuador
20
21cat sfdfile.sfd >> $target/sfdfile.sfd
22
23echo "12-Aug-2010_12:03:00.000 $target/bgr2010psbx.evt" >> $target/eventlist