| | 348 | * CCL 12:30 : try to find warp_id and corresponding chip_id to see it chip state |
| | 349 | {{{ |
| | 350 | SELECT rawExp.exp_name,rawExp.exp_id,chipRun.chip_id,chipRun.state,camRun.cam_id,fakeRun.fake_id,warpRun.warp_id,warpRun.state,warpRun.label,warpRun.data_group \ |
| | 351 | FROM warpRun, fakeRun, camRun, chipRun, rawExp \ |
| | 352 | WHERE warpRun.fake_id = fakeRun.fake_id \ |
| | 353 | AND fakeRun.cam_id = camRun.cam_id \ |
| | 354 | AND camRun.chip_id = chipRun.chip_id \ |
| | 355 | AND chipRun.exp_id = rawExp.exp_id \ |
| | 356 | AND warpRun.state like 'update' \ |
| | 357 | AND warpRun.label like 'update.LAP.PV3' order by exp_name limit 10 |
| | 358 | |
| | 359 | mysql xxx -B -e 'SELECT chipRun.chip_id FROM warpRun, fakeRun, camRun, chipRun, rawExp \ |
| | 360 | WHERE warpRun.fake_id = fakeRun.fake_id \ |
| | 361 | AND fakeRun.cam_id = camRun.cam_id \ |
| | 362 | AND camRun.chip_id = chipRun.chip_id \ |
| | 363 | AND chipRun.exp_id = rawExp.exp_id \ |
| | 364 | AND warpRun.state like "update" \ |
| | 365 | AND warpRun.label like "update.LAP.PV3" \ |
| | 366 | AND chipRun.state not like "update" | \ |
| | 367 | sed 's/^/chiptool -dbname gpc1 -updaterun -state wait -set_state update -set_label update.LAP.PV3 -chip_id /' > wait-update.sh |
| | 368 | && |
| | 369 | sed 's/^/chiptool -dbname gpc1 -setimfiletoupdate -set_label update.LAP.PV3 -chip_id /' > setimfiletoupdate.sh |
| | 370 | |
| | 371 | ** might not be all at "wait" state with "chipRun.state not like update" |
| | 372 | }}} |