IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27201


Ignore:
Timestamp:
Mar 4, 2010, 6:25:35 PM (16 years ago)
Author:
heather
Message:

fixed bugs in my script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/processing_quick_check.pl

    r26699 r27201  
    215215
    216216
    217 $qr = "select  distRun.state, distComponent.fault, distComponent.outdir, outroot from distRun join distComponent using (dist_id) where label ='$label' and (distComponent.fault > 0) order by distComponent.fault desc;";
    218 
    219  $query = $db->selectall_arrayref( $qr ) ||
    220     die "Unable to execute SQL: $DBI::errstr\n";
    221 
    222 
    223 foreach  $item (@{$query}) {
    224     print "dist ${$item}[0] ${$item}[1] ${$item}[2]\n";
     217$qr = "select  distRun.state, distComponent.fault, distComponent.outdir, outroot from distRun join distComponent using (dist_id) where label ='$label' and (distComponent.fault > 0 ) order by distComponent.fault desc;";
     218
     219 $query = $db->selectall_arrayref( $qr ) ||
     220    die "Unable to execute SQL: $DBI::errstr\n";
     221
     222
     223foreach  $item (@{$query}) {
     224    print "distComp ${$item}[0] ${$item}[1] ${$item}[2]\n";
     225}
     226
     227$qr = "select  distRun.state, distRun.fault, outroot from distRun where label ='$label' and (distRun.fault > 0 ) order by distRun.fault desc;";
     228
     229 $query = $db->selectall_arrayref( $qr ) ||
     230    die "Unable to execute SQL: $DBI::errstr\n";
     231
     232
     233foreach  $item (@{$query}) {
     234    print "distRun ${$item}[0] ${$item}[1] ${$item}[2]\n";
    225235}
    226236
Note: See TracChangeset for help on using the changeset viewer.