Changeset 8380 for trunk/MagicSoft/Mars/datacenter/scripts
- Timestamp:
- 03/20/07 17:21:03 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/scripts
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/scripts/budb
r8078 r8380 28 28 echo "writing all databases to file..." >> $logfile 2>&1 29 29 set +C 30 mysqldump --host= hercules--all-databases -u dump | bzip2 -9 -c > $file$datum$end 2>> $logfile30 mysqldump --host=vela --all-databases -u dump | bzip2 -9 -c > $file$datum$end 2>> $logfile 31 31 32 32 -
trunk/MagicSoft/Mars/datacenter/scripts/dbchk
r8065 r8380 9 9 stardir=/magic/data/star 10 10 # access to the sql database 11 alias mymysql='mysql -s -u MAGIC -h hercules--password=d99swMT!'11 alias mymysql='mysql -s -u MAGIC -h vela --password=d99swMT!' 12 12 # database name 13 13 db=MyMagic -
trunk/MagicSoft/Mars/datacenter/scripts/dunotseqruns
r8058 r8380 4 4 query="select concat('/magic/data/rawfiles', Date_Format(adddate(fRunStart, interval 12 HOUR), '/%Y/%m/%d/'),'*', fRunNumber, '*.raw.gz') from RunData where fSequenceFirst='0' and fRunStart > '2004-08-20'" 5 5 6 files=`mysql -u MAGIC --host= hercules--password=d99swMT! MyMagic -s -e " $query"`6 files=`mysql -u MAGIC --host=vela --password=d99swMT! MyMagic -s -e " $query"` 7 7 8 8 sum=0 -
trunk/MagicSoft/Mars/datacenter/scripts/findnewstars
r8063 r8380 67 67 done 68 68 69 alias mymysql='mysql -u MAGIC --password=d99swMT! --host= herculesMyMagic -s -e'69 alias mymysql='mysql -u MAGIC --password=d99swMT! --host=vela MyMagic -s -e' 70 70 71 71 query="SELECT fSequenceFirst FROM SequenceProcessStatus WHERE NOT ISNULL(fStar) " -
trunk/MagicSoft/Mars/datacenter/scripts/findnotseqruns
r8063 r8380 106 106 done 107 107 108 alias mymysql='mysql -u MAGIC --password=d99swMT! --host= herculesMyMagic -s -e'108 alias mymysql='mysql -u MAGIC --password=d99swMT! --host=vela MyMagic -s -e' 109 109 110 110 if [ "$dat" = "" ] && [ "$cal" = "" ] && [ "$ped" = "" ] && ! [ "$all" = "yes" ] -
trunk/MagicSoft/Mars/datacenter/scripts/sourcefile
r8303 r8380 310 310 query=$query" order by $primary desc " 311 311 # echo " QUERY: "$query 312 if ! process=`mysql -s -u $us --password=$pw --host= hercules$db -e " $query "`312 if ! process=`mysql -s -u $us --password=$pw --host=vela $db -e " $query "` 313 313 then 314 314 echo "ERROR could not query processes from db -> exit" … … 356 356 query=$query" limit 0, 1 " 357 357 # echo " QUERY: "$query 358 if ! process=`mysql -s -u $us --password=$pw --host= hercules$db -e " $query "`358 if ! process=`mysql -s -u $us --password=$pw --host=vela $db -e " $query "` 359 359 then 360 360 echo "ERROR could not query process from db -> exit" … … 392 392 # echo " QUERY: "$query 393 393 numproc=0 394 if ! numproc=`mysql -s -u $us --password=$pw --host= hercules$db -e " $query "`394 if ! numproc=`mysql -s -u $us --password=$pw --host=vela $db -e " $query "` 395 395 then 396 396 echo "ERROR could not query number of todo proceses from db -> continue" … … 430 430 query=$query" where $primary='$var2'" 431 431 echo " QUERY: "$query 432 if ! mysql -s -u $us --password=$pw --host= hercules$db -e " $query "432 if ! mysql -s -u $us --password=$pw --host=vela $db -e " $query " 433 433 then 434 434 echo "ERROR could not insert status into db -> exit"
Note:
See TracChangeset
for help on using the changeset viewer.