X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=automate_pl03.sh;h=4cf870d4f7843b078f94ee00f61ed1df2769ffa3;hb=dc70043f70f08f0d6540c77e53d30c0ed6e58ad5;hp=8dec52af54693d90ce81445579a5fb538321d7d8;hpb=2553c872a6bb8833643d284351d45042c1116a40;p=monitor.git diff --git a/automate_pl03.sh b/automate_pl03.sh index 8dec52a..4cf870d 100755 --- a/automate_pl03.sh +++ b/automate_pl03.sh @@ -15,7 +15,7 @@ scp pdb/production.findbad2.pkl soltesz@golf.cs.princeton.edu:monitor3/pdb/produ ######################## # COPY Act_all records -scp soltesz@golf.cs.princeton.edu:monitor3/pdb/production.act_all.pkl pdb/ +#scp soltesz@golf.cs.princeton.edu:monitor3/pdb/production.act_all.pkl pdb/ ######################## # badcsv.txt @@ -27,4 +27,10 @@ cp badcsv.txt /plc/data/var/www/html/monitor/ rm -f pdb/production.findbadpcus2.pkl ./findbadpcu.py --increment --refresh --debug=0 --dbname=findbadpcus2 # convert pkl to php serialize format. +cp pdb/production.findbadpcus2.pkl pdb/production.findbadpcus.pkl ./pkl2php.py -i findbadpcus2 -o findbadpcus + + +for f in findbad act_all findbadpcus l_plcnodes; do + cp pdb/production.$f.pkl archive-pdb/`date +%F`.production.$f.pkl +done