Changeset 17637 for trunk/DataStore/scripts/dsrootls
- Timestamp:
- May 12, 2008, 12:04:53 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/DataStore/scripts/dsrootls (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataStore/scripts/dsrootls
r14879 r17637 1 1 #!/usr/bin/env perl 2 2 3 # Copyright (C) 2006-200 7Joshua Hoblitt3 # Copyright (C) 2006-2008 Joshua Hoblitt 4 4 # 5 # $Id: dsrootls,v 1. 1 2007-09-18 04:15:09jhoblitt Exp $5 # $Id: dsrootls,v 1.2 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 'uri|u=s' => \$uri, 21 'uri|u=s' => \$uri, 22 'timeout|t' => \$timeout, 22 23 ) or pod2usage( 2 ); 23 24 … … 28 29 ) unless defined $uri; 29 30 31 # default http request timeout is 30s 32 $timeout ||= 30; 33 30 34 my %p = ( 31 35 uri => $uri, 32 36 ); 33 37 34 my $response = DataStore::Root->new(%p)->request; 38 my $response = DataStore::Root->new(%p)->request( 39 ua_args => { timeout => $timeout }, 40 ); 35 41 36 42 die "request failed" unless defined $response; … … 78 84 The URI of the file to be retrieved. 79 85 86 =item * --timeout|-t 87 88 The ammount of time (in seconds) to wait for a response from the DataStore 89 after making an HTTP request. The default is 30s. 90 91 Optional. 92 80 93 =back 81 94 … … 94 107 =head1 COPYRIGHT 95 108 96 Copyright (C) 2006-200 7Joshua Hoblitt. All rights reserved.109 Copyright (C) 2006-2008 Joshua Hoblitt. All rights reserved. 97 110 98 111 This program is free software; you can redistribute it and/or modify it under … … 114 127 =head1 SEE ALSO 115 128 116 L< DataStore>, L<DataStore::Product>, L<DataStore::FileSet>129 L<dsget>, L<dsleech>, L<dsrootls>, L<dsproductls>, L<dsfilesetls>, L<DataStore> 117 130 118 131 =cut
Note:
See TracChangeset
for help on using the changeset viewer.
