#!/bin/sh
echo "running special"
cd /home/root
echo "changed to home root"

# Execute a shell command
# $1 - command
run_cmd(){
	echo $1
	eval $1
}


run_cmd "/home/root/scripts/gps-on"
run_cmd "sleep 25"
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 -s date 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/scripts/gps-off"
run_cmd "/home/root/libgum/gum-time 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/libgum/gum-settime 2>&1 | tee -a /tmp/output"
run_cmd "/home/root/libgum/gum-time 2>&1 | tee -a /tmp/output"

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