IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30245 for trunk/ippTasks


Ignore:
Timestamp:
Jan 12, 2011, 1:34:31 PM (16 years ago)
Author:
watersc1
Message:

Forgot to add a method to get dates into the pendingburntoolimfile task.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/register.pro

    r30240 r30245  
    99book init regPendingExp
    1010book init regPendingBurntoolImfile
     11book init regDates
    1112
    1213macro register.reset
    … …  
    1415  book init regPendingExp
    1516  book init regPendingBurntoolImfile
     17  book init regDates
    1618end
    1719
    … …  
    2123  book listbook regPendingExp
    2224  book listbook regPendingBurntoolImfile
     25  book listbook regDates
    2326end
    2427
    … …  
    100103  end
    101104end
     105
     106macro register.add.date
     107  if ($0 != 2)
     108    echo "USAGE: register.add.date (YYYY-MM-DD)"
     109    break
     110  end
     111
     112   book newpage regDates $1
     113   book setword regDates $1 nsState NEW
     114   book setword regDates $1 dbname $DB:0
     115end
     116
    102117
    103118$valid_burntool_value = 14
    … …  
    547562  # select entried from the current DB; cycle to the next DB, if it exists
    548563  task.exec
    549      book npages nsData -var Npages
     564     book npages regDates -var Npages
    550565     if ($Npages == 0)
    551566       $today = `date -u +%Y-%m-%d`
    552567     else
    553        book getpage nsData $ns_datePAGE -var today
    554        $ns_datePAGE ++
    555        if ($ns_datePAGE >= $Npages) set ns_datePAGE = 0
     568       book getpage regDates $reg_datePAGE -var today
     569       $reg_datePAGE ++
     570       if ($reg_datePAGE >= $Npages) set reg_datePAGE = 0
    556571     end
    557572
    … …  
    669684end
    670685
    671    
     686task   register.initday.load
     687  host            local
     688  periods         -poll $LOADPOLL
     689  periods         -exec $LOADEXEC
     690  periods         -timeout 30
     691  trange          0:00:00 1:00:00 -nmax 1
     692  npending        1
     693
     694  task.exec
     695    $today = `date -u +%Y-%m-%d`
     696    book newpage regDates $today
     697    book setword regDates $today nsState NEW
     698    book setword regDates $today dbname $DB:0
     699
     700    command true
     701  end
     702
     703  task.exit       0
     704    # nothing to do here?
     705  end
     706  # locked list
     707  task.exit    default
     708    showcommand failure
     709  end
     710  task.exit    crash
     711    showcommand crash
     712  end
     713  #operation times out?
     714  task.exit    timeout
     715    showcommand timeout
     716  end
     717end
     718
    672719   
    673720 
Note: See TracChangeset for help on using the changeset viewer.