pkl2php is a script that reads in a python pickle file and spits out the
[monitor.git] / automate.sh
1 #!/bin/bash
2
3 set -e
4 cd $HOME/research/planetlab/svn/monitor/
5 source ssh.env.sh
6 export SSH_AUTH_SOCK
7 rm -f pdb/production.findbad2.pkl
8 ./findbad.py --cachenodes --debug=0 --dbname="findbad2"
9 # rename, and copies to golf.
10 cp  pdb/production.findbad2.pkl pdb/production.findbad.pkl
11 scp pdb/production.findbad2.pkl soltesz@golf.cs.princeton.edu:monitor3/pdb/production.findbad.pkl
12 scp soltesz@golf.cs.princeton.edu:monitor3/pdb/production.act_all.pkl ~/public_html/cgi-bin/pdb/debug.act_all.pkl
13 # make available for local cgi-bin scripts
14 cp pdb/production.findbad2.pkl ~/public_html/cgi-bin/pdb/debug.findbad.pkl
15 # generate badcsv for tux/public_html scripts.
16 ./printbadcsv.py  | grep -v loading | tr -d ' ' > badcsv.txt
17 scp badcsv.txt soltesz@tux.cs.princeton.edu:public_html/
18
19
20 ssh soltesz@pl-virtual-03 "cd monitor3; ./findbadpcu.py --increment --refresh --debug=0 --dbname=findbadpcus"
21 scp soltesz@pl-virtual-03:monitor3/pdb/production.findbadpcus.phpserial pdb/