Changeset 18923 for branches/eam_branch_20080719/ippTools/src/pzgetexp.c
- Timestamp:
- Aug 5, 2008, 2:07:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/ippTools/src/pzgetexp.c
r18622 r18923 74 74 PXOPT_LOOKUP_STR(uri, config->args, "-uri", true, false); 75 75 76 //optional 77 PXOPT_LOOKUP_S32(timeout, config->args, "-timeout", false, false); 78 PXOPT_LOOKUP_BOOL(all, config->args, "-all", false); 79 76 80 // find last fileset/exp_name (if we have one) 77 81 bool haveLastFileSet = false; 78 82 psString lastFileSet = NULL; 79 { 83 84 // -all means "request all known filesets" 85 if (!all) { 80 86 char *query = "SELECT * from summitExp WHERE camera = \"%s\" and TELESCOPE = \"%s\" ORDER BY dateobs DESC LIMIT 1"; 81 87 if (!p_psDBRunQuery(config->dbh, query, camera, telescope)) { … … 110 116 } else { 111 117 psStringAppend(&cmd, "%s --uri %s", PRODUCT_LS_CMD, uri); 118 } 119 if (timeout) { 120 psStringAppend(&cmd, " --timeout %d", timeout); 112 121 } 113 122
Note:
See TracChangeset
for help on using the changeset viewer.
