IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2009, 2:20:29 PM (17 years ago)
Author:
bills
Message:

add option to cause dsproductls to print out any 'extra' fields retrieved from the data store

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsproductls

    r18763 r24126  
    1616use Pod::Usage qw( pod2usage );
    1717
    18 my ($uri, $last_fileset, $timeout);
     18my ($uri, $last_fileset, $timeout, $extra);
    1919
    2020GetOptions(
    2121    'uri|u=s'           => \$uri,
    2222    'last_fileset|l=s'  => \$last_fileset,
    23     'timeout|t=s'         => \$timeout,
     23    'timeout|t=s'       => \$timeout,
     24    'extra|e'         => \$extra,
    2425) or pod2usage( 2 );
    2526
     
    5960print "# uri fileset datetime type\n";
    6061foreach my $fs (@$data) {
    61     print $fs->uri, " ", $fs->fileset, " ", $fs->datetime, " ", $fs->type, "\n";
     62    print $fs->uri, " ", $fs->fileset, " ", $fs->datetime, " ", $fs->type;
     63    if ($extra) {
     64        my $cols = $fs->extra;
     65        foreach my $col (@$cols) {
     66            print " ", $col;
     67        }
     68    }
     69    print "\n";
    6270}
    6371
     
    8492The URI of the file to be retrieved.
    8593
    86 =item * --lst_fileset|-l <filesetid>
     94=item * --last_fileset|-l <filesetid>
    8795
    8896The FileSet ID of the last FileSet that you've seen.
     
    94102The ammount of time (in seconds) to wait for a response from the DataStore
    95103after making an HTTP request.  The default is 30s.
     104
     105Optional.
     106
     107=item * --extra|-e
     108
     109Print out any extra columns in the listing.
    96110
    97111Optional.
Note: See TracChangeset for help on using the changeset viewer.