Changeset 17964 for trunk/ippScripts/scripts
- Timestamp:
- Jun 6, 2008, 1:57:57 PM (18 years ago)
- Location:
- trunk/ippScripts/scripts
- Files:
-
- 2 edited
-
register_exp.pl (modified) (2 diffs)
-
register_imfile.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/register_exp.pl
r17803 r17964 25 25 use Pod::Usage qw( pod2usage ); 26 26 27 my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op); 27 my $ipprc = PS::IPP::Config->new(); 28 29 my ($cache, $exp_id, $exp_tag, $dbname, $verbose, $no_update, $no_op, $logfile); 28 30 GetOptions( 29 31 'caches' => \$cache, … … 34 36 'no-update' => \$no_update, 35 37 'no-op' => \$no_op, 38 'logfile=s' => \$logfile, 36 39 ) or pod2usage( 2 ); 40 41 $ipprc->redirect_output($logfile) if $logfile; 37 42 38 43 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; -
trunk/ippScripts/scripts/register_imfile.pl
r17937 r17964 28 28 use Pod::Usage qw( pod2usage ); 29 29 30 my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $dbname, $verbose, $no_update, $no_op );30 my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $dbname, $verbose, $no_update, $no_op, $logfile); 31 31 GetOptions( 32 32 'caches' => \$cache, … … 35 35 'tmp_exp_name|n=s' => \$tmp_exp_name, 36 36 'uri|u=s' => \$uri, 37 'dbname|d=s' => \$dbname, # Database name37 'dbname|d=s' => \$dbname, # Database name 38 38 'verbose' => \$verbose, # Print to stdout 39 39 'no-update' => \$no_update, 40 40 'no-op' => \$no_op, 41 'logfile=s' => \$logfile, 41 42 ) or pod2usage( 2 ); 43 44 $ipprc->redirect_output($logfile) if $logfile; 42 45 43 46 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; … … 48 51 defined $tmp_exp_name and 49 52 defined $uri; 53 50 54 51 55 my $RECIPE = "REGISTER"; # Recipe to use for ppStats
Note:
See TracChangeset
for help on using the changeset viewer.
