Changeset 11085 for branches/eam_branch_00/ippTasks/pantasks.pro
- Timestamp:
- Jan 12, 2007, 4:28:00 PM (20 years ago)
- File:
-
- 1 edited
-
branches/eam_branch_00/ippTasks/pantasks.pro (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_00/ippTasks/pantasks.pro
r11059 r11085 100 100 end 101 101 end 102 103 macro process_exit 104 if ($0 != 4) 105 echo "USAGE: process_exit (bookName) (pageName) (exitCode)" 106 break 107 end 108 109 $bookName = $1 110 $pageName = $2 111 $exitCode = $3 112 113 # success 114 if ($exitCode == $EXIT_SUCCESS) 115 # the handler scripts update DB the tables; here we just update the page 116 book setword $bookName $pageName state DONE 117 return 118 end 119 120 # failure related to the data files 121 # jobs which result in DATAERR must have db state updated 122 if ($exitCode == $EXIT_DATA_ERR) 123 showcommand failure 124 book setword $bookName $pageName state DATA_ERR 125 return 126 end 127 128 # failure related to the data files 129 if ($exitCode == $EXIT_SYS_ERR) 130 halt 131 showcommand "system failure" 132 book setword $bookName $pageName state SYS_ERR 133 return 134 end 135 136 # failure related to the data files 137 if ($exitCode == $EXIT_CONFIG_ERR) 138 halt 139 showcommand "config error" 140 book setword $bookName $pageName state CONFIG_ERR 141 return 142 end 143 144 # failure related to the data files 145 if ($exitCode == $EXIT_PROG_ERR) 146 halt 147 showcommand "programming error" 148 book setword $bookName $pageName state PROG_ERR 149 return 150 end 151 152 # any other exit status 153 showcommand failure 154 book setword $bookName $pageName state UNKNOWN_ERR 155 end
Note:
See TracChangeset
for help on using the changeset viewer.
