IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18762


Ignore:
Timestamp:
Jul 28, 2008, 5:16:41 PM (18 years ago)
Author:
bills
Message:

Add a timeout parameter

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pzgetexp.c

    r17908 r18762  
    7474    PXOPT_LOOKUP_STR(uri, config->args, "-uri", true, false);
    7575
     76    //optional
     77    PXOPT_LOOKUP_S32(timeout, config->args, "-timeout", false, false);
     78
    7679    // find last fileset/exp_name (if we have one)
    7780    bool haveLastFileSet = false;
     
    110113    } else {
    111114        psStringAppend(&cmd, "%s --uri %s", PRODUCT_LS_CMD, uri);
     115    }
     116    if (timeout) {
     117        psStringAppend(&cmd, " --timeout %d", timeout);
    112118    }
    113119
  • trunk/ippTools/src/pzgetexpConfig.c

    r18172 r18762  
    5151    psMetadataAddStr(args , PS_LIST_TAIL, "-telescope",  0,
    5252        "telescope name (required)", "");
     53    psMetadataAddS32(args, PS_LIST_TAIL, "-timeout",  0,
     54        "HTTP timeout", 0);
     55
    5356
    5457    bool status = false;
     
    6164        fprintf(stderr, "error parsing arguments\n");
    6265        printf("\nPan-STARRS Phase Z Get Exposures Tool\n");
    63         printf("Usage: %s -uri <uri> -inst <camera> -telescope <telescope>\n\n",
     66        printf("Usage: %s -uri <uri> -inst <camera> -telescope <telescope> [-timeout <n>]\n\n",
    6467            argv[0]);
    6568        psArgumentHelp(args);
Note: See TracChangeset for help on using the changeset viewer.