IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 8, 2008, 9:30:38 AM (18 years ago)
Author:
eugene
Message:

added compress option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/scripts/dsget

    r16342 r16368  
    33# Copyright (C) 2006-2008  Joshua Hoblitt
    44#
    5 # $Id: dsget,v 1.13 2008-02-06 23:48:13 eugene Exp $
     5# $Id: dsget,v 1.14 2008-02-08 19:30:38 eugene Exp $
    66
    77use strict;
     
    2020use Pod::Usage qw( pod2usage );
    2121
    22 my ($uri, $bytes, $md5, $nebulous, $filename, $volume, $server);
     22my ($uri, $bytes, $md5, $nebulous, $filename, $volume, $server, $compress);
    2323
    2424$server = $ENV{'NEB_SERVER'} unless $server;
     
    3232    'md5|m=s'       => \$md5,
    3333    'filename|f=s'  => \$filename,
     34    'compress'      => \$compress,
    3435) or pod2usage( 2 );
    3536
     
    6263# 1) parse anyway and check for conflict
    6364# 2) drop --volume option
     65
     66if ($compress) {
     67    $uri = "$uri?compress";
     68}
    6469
    6570my %p = (
     
    166171=head1 SYNOPSIS
    167172
    168     dsget --uri <uri> --filename <filename> [--bytes <nbytes>] [--md5 <hex>]
     173    dsget --uri <uri> --filename <filename> [--bytes <nbytes>] [--md5 <hex>] [--compress]
    169174        [--nebulous] [--volume <volume name>]
    170175
Note: See TracChangeset for help on using the changeset viewer.