Changeset 30245
- Timestamp:
- Jan 12, 2011, 1:34:31 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/register.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/register.pro
r30240 r30245 9 9 book init regPendingExp 10 10 book init regPendingBurntoolImfile 11 book init regDates 11 12 12 13 macro register.reset … … 14 15 book init regPendingExp 15 16 book init regPendingBurntoolImfile 17 book init regDates 16 18 end 17 19 … … 21 23 book listbook regPendingExp 22 24 book listbook regPendingBurntoolImfile 25 book listbook regDates 23 26 end 24 27 … … 100 103 end 101 104 end 105 106 macro 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 115 end 116 102 117 103 118 $valid_burntool_value = 14 … … 547 562 # select entried from the current DB; cycle to the next DB, if it exists 548 563 task.exec 549 book npages nsData-var Npages564 book npages regDates -var Npages 550 565 if ($Npages == 0) 551 566 $today = `date -u +%Y-%m-%d` 552 567 else 553 book getpage nsData $ns_datePAGE -var today554 $ ns_datePAGE ++555 if ($ ns_datePAGE >= $Npages) set ns_datePAGE = 0568 book getpage regDates $reg_datePAGE -var today 569 $reg_datePAGE ++ 570 if ($reg_datePAGE >= $Npages) set reg_datePAGE = 0 556 571 end 557 572 … … 669 684 end 670 685 671 686 task 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 717 end 718 672 719 673 720
Note:
See TracChangeset
for help on using the changeset viewer.
