Changeset 17637 for trunk/DataStore/scripts/dsfilesetls
- Timestamp:
- May 12, 2008, 12:04:53 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/DataStore/scripts/dsfilesetls (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/scripts/dsfilesetls
r17455 r17637 1 1 #!/usr/bin/env perl 2 2 3 # Copyright (C) 2006 Joshua Hoblitt3 # Copyright (C) 2006-2008 Joshua Hoblitt 4 4 # 5 # $Id: dsfilesetls,v 1. 6 2008-04-18 23:33:13 jhoblitt Exp $5 # $Id: dsfilesetls,v 1.7 2008-05-12 22:04:53 jhoblitt Exp $ 6 6 7 7 use strict; … … 16 16 use Pod::Usage qw( pod2usage ); 17 17 18 my ($uri );18 my ($uri, $timeout); 19 19 20 20 GetOptions( 21 21 'uri|u=s' => \$uri, 22 'timeout|t' => \$timeout, 22 23 ) or pod2usage( 2 ); 23 24 … … 28 29 ) unless defined $uri; 29 30 30 my $response = DataStore::FileSet->new( uri => $uri )->request; 31 # default http request timeout is 30s 32 $timeout ||= 30; 33 34 my $response = DataStore::FileSet->new( uri => $uri )->request( 35 ua_args => { timeout => $timeout }, 36 ); 31 37 32 38 die "request failed" unless defined $response; … … 76 82 The URI of the file to be retrieved. 77 83 84 =item * --timeout|-t 85 86 The ammount of time (in seconds) to wait for a response from the DataStore 87 after making an HTTP request. The default is 30s. 88 89 Optional. 90 78 91 =back 79 92 … … 92 105 =head1 COPYRIGHT 93 106 94 Copyright (C) 2006 Joshua Hoblitt. All rights reserved.107 Copyright (C) 2006-2008 Joshua Hoblitt. All rights reserved. 95 108 96 109 This program is free software; you can redistribute it and/or modify it under … … 112 125 =head1 SEE ALSO 113 126 114 L< DataStore>, L<DataStore::FileSet>, L<DataStore::File>127 L<dsget>, L<dsleech>, L<dsrootls>, L<dsproductls>, L<dsfilesetls>, L<DataStore> 115 128 116 129 =cut
Note:
See TracChangeset
for help on using the changeset viewer.
