IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Add a timeout parameter

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.