Changeset 9603 for trunk/MagicSoft/Mars/datacenter
- Timestamp:
- 06/30/10 16:40:42 (15 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/mcinfo.php
r9600 r9603 55 55 ." IF (NOT ISNULL(" . $key . "Status.fStartTime) " 56 56 ." AND NOT ISNULL(" . $key . "Status.fStopTime) " 57 ." AND ISNULL(" . $key . "Status.fReturnCode), 'done', ' bla' "57 ." AND ISNULL(" . $key . "Status.fReturnCode), 'done', 'failed' " 58 58 ." )))) AS '". $key . "', "; 59 59 } … … 80 80 $query0 .= " ISNULL(" . $key . "Status.fStopTime) AND "; 81 81 $query0 .= " ISNULL(" . $key . "Status.fReturnCode), 'not done', "; 82 $query0 .= " IF (NOT ISNULL(" . $key . "Status.fStartTime) "; 83 $query0 .= " AND ISNULL(" . $key . "Status.fStopTime) "; 84 $query0 .= " AND ISNULL(" . $key . "Status.fReturnCode), "; 85 $query0 .= " CONCAT('running (since ', " . $key . "Status.fStartTime, ')'), "; 82 86 $query0 .= " IF (NOT ISNULL(" . $key . "Status.fReturnCode), "; 83 87 $query0 .= " CONCAT('failed (', " . $key . "Status.fReturnCode, ')'), "; 84 88 $query0 .= " CONCAT('done (', " . $key . "Status.fStopTime, "; 85 $query0 .= " ',', TIMEDIFF(" . $key . "Status.fStopTime, " . $key . "Status.fStartTime), ')'))) ";89 $query0 .= " ',', TIMEDIFF(" . $key . "Status.fStopTime, " . $key . "Status.fStartTime), ')')))) "; 86 90 87 91 //$query0 .= ", CONCAT( 'halo', " . $key . "Status.fStartTime)"; -
trunk/MagicSoft/Mars/datacenter/scripts/runcorsika
r9586 r9603 195 195 wavelengths=`sendquery` 196 196 197 outpath=$mcpath"/"$program"/"`printf %08d $run | cut -c 0-4`/`printf %08d $run | cut -c 5-8`197 outpath=$mcpath"/"$program"/"`printf %08d $run | cut -c 1-4`/`printf %08d $run | cut -c 5-8` 198 198 makedir $outpath 199 199 logfile=$outpath/cer000`printf %06d $file | cut -c 4-6`".log"
Note:
See TracChangeset
for help on using the changeset viewer.