IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 11, 2006, 4:15:02 PM (19 years ago)
Author:
Paul Price
Message:

Adding script to get only the first few pending p0 imfiles. Removed WORKDIR for phase 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/phase0.pro

    r10542 r10638  
    1515end
    1616
     17macro test.p0
     18    list testlist -x "p0tool -pendingimfile -simple"
     19    echo $testlist:n
     20    for i 0 $testlist:n
     21      queuepush stdout "$testlist:$i"
     22    end
     23    echo Done pushing.
     24    queuesize stdout -var Nqueue
     25    for i 0 $Nqueue
     26      queuepop stdout -var line
     27      list word -split $line
     28      $EXP_TAG  = $word:0
     29      $CLASS    = $word:1
     30      $CLASS_ID = $word:2
     31      $URI      = $word:3
     32      queuepush Phase0Imfiles -uniq -key 1 "NEW $EXP_TAG $CLASS $CLASS_ID $URI"
     33    end
     34end
     35
    1736# select images ready for phase0 analysis
    1837# new entries are added to queue Phase0Imfiles
    1938# compare the new list with the ones already selected
    2039task           phase0.imfile.load
    21   command      p0tool -pendingimfile -simple
     40#  command      p0tool -pendingimfile -simple
     41  command      /home/price/ipp/ippTasks/p0tool.sh
    2242  host         local
    2343
    2444  periods      -poll $loadpoll
    25   periods      -exec $loadexec
     45  periods      -exec 30
    2646  periods      -timeout 30
    2747
     
    3858    # only add entries which don't exist in queue
    3959    queuesize stdout -var Nqueue
    40     for i 0 $Nqueue
     60    for i 0 {$Nqueue << 20}
    4161      queuepop stdout -var line
     62      echo $line
    4263      list word -split $line
    4364      $EXP_TAG  = $word:0
     
    98119    end
    99120
    100     $LOG_DIR = `dirname $URI`
    101     stdout $WORKDIR/$LOG_DIR/$EXP_TAG.$CLASS_ID.log
    102     stderr $WORKDIR/$LOG_DIR/$EXP_TAG.$CLASS_ID.log
     121    stdout $WORKDIR/$EXP_TAG.$CLASS_ID.log
     122    stderr $WORKDIR/$EXP_TAG.$CLASS_ID.log
    103123
    104124    # create the command line
     
    205225    $EXP_TAG   = $word:0
    206226
    207     # XXX add $WORKDIR/$LOG_DIR
    208     stdout $EXP_TAG.log
    209     stderr $EXP_TAG.log
     227    stdout $WORKDIR/$EXP_TAG.log
     228    stderr $WORKDIR/$EXP_TAG.log
    210229
    211230    # specify choice of remote host:(need to choose based on chips)
Note: See TracChangeset for help on using the changeset viewer.