IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 5, 2008, 2:07:07 PM (18 years ago)
Author:
eugene
Message:

updates from HEAD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080719/ippTools/src/pzgetexp.c

    r18622 r18923  
    7474    PXOPT_LOOKUP_STR(uri, config->args, "-uri", true, false);
    7575
     76    //optional
     77    PXOPT_LOOKUP_S32(timeout, config->args, "-timeout", false, false);
     78    PXOPT_LOOKUP_BOOL(all, config->args, "-all", false);
     79
    7680    // find last fileset/exp_name (if we have one)
    7781    bool haveLastFileSet = false;
    7882    psString lastFileSet = NULL;
    79     {
     83
     84    // -all means "request all known filesets"
     85    if (!all) {
    8086        char *query = "SELECT * from summitExp WHERE camera = \"%s\" and TELESCOPE = \"%s\" ORDER BY dateobs DESC LIMIT 1";
    8187        if (!p_psDBRunQuery(config->dbh, query, camera, telescope)) {
     
    110116    } else {
    111117        psStringAppend(&cmd, "%s --uri %s", PRODUCT_LS_CMD, uri);
     118    }
     119    if (timeout) {
     120        psStringAppend(&cmd, " --timeout %d", timeout);
    112121    }
    113122
Note: See TracChangeset for help on using the changeset viewer.