forked from sigblips/SonATA
-
Notifications
You must be signed in to change notification settings - Fork 7
/
sonata-cron-begin-vger-session.sh
executable file
·28 lines (24 loc) · 1.24 KB
/
sonata-cron-begin-vger-session.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# sonata-cron-begin-vger-session.sh
# save the master-antenna-list.tcl
cp /home/sonata/sonata_install/scripts/antenna-list-master.tcl /home/sonata/sonata_install/scripts/save-antenna-list-master.tcl
# use antlist for 8400 mhz
cp /home/sonata/sonata_install/scripts/antenna-list-master-8400mhz.tcl /home/sonata/sonata_install/scripts/antenna-list-master.tcl
#run the test to see if we should be running. If not - exit the script.
/home/sonata/scripts/should_start_obs.rb
if [ $? -ne 0 ]; then
exit
fi
#Start the backend process that watches the weather
/home/sonata/scripts/weather_watch.rb &
# Kill all the dxs and channelizers in case they weren't shutdown properly
/home/sonata/sonata_install/scripts/cleanup-chan-dx.tcsh
# start a SonATA observing session
# start up SSE
${HOME}/sonata_install/bin/sonata-startup-cron-vger-wrapper.sh -batch
# allow enough time for all components to be ready
sleep 120
#send command to SSE to start Observing
${HOME}/sonata_install/bin/sonata-seeker-command-cron-wrapper.sh source ${HOME}/sonata_install/scripts/sonata-start-vger-1beam-8414-8424-obs.tcl
# restore antenna-list-master.tcl
cp /home/sonata/sonata_install/scripts/save-antenna-list-master.tcl /home/sonata/sonata_install/scripts/antenna-list-master.tcl