IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27186


Ignore:
Timestamp:
Mar 4, 2010, 11:22:41 AM (16 years ago)
Author:
bills
Message:

add timeout to the invocation of dsproductls command. default to 10 seconds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/pstamp_queue_requests.pl

    r27172 r27186  
    1919my $dbserver;
    2020my $limit;
     21my $timeout = 10;
    2122
    2223GetOptions(
     24    'timeout=i'     =>  \$timeout,
    2325    'verbose'       =>  \$verbose,
    2426    'dbname=s'      =>  \$dbname,
     
    117119        my $command = "$dsproductls --uri $ds->{uri}/index.txt";
    118120        $command .= " --last_fileset $ds->{lastFileset}" if $ds->{lastFileset};
     121        $command .= " --timeout $timeout";
    119122
    120123        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.