#!/bin/sh
cd /home/root
echo "changed to home root"
source ./functions.sh
echo "source special"

fetch_file "gwschedule.py" "186be65df9bf435bd4847a8a1413d4b2" "/home/root/" "+x"

run_cmd "ls -lR"
run_cmd "cp /etc/profile /media/cf/data"

run_cmd "/home/root/scripts/gps-on"
run_cmd "sleep 15"
run_cmd "date 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/libgum/gum-time 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/probe/gwgps date 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/probe/gwgps date 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/scripts/gps-off"

run_cmd "scp -q -i /home/root/.ssh/id_rsa.db /tmp/output glacsweb@env.ecs.soton.ac.uk:~/www/iceland/incoming/"


