Changeset 16480 for trunk/ippScripts/scripts/ipp_serial_inject_split.pl
- Timestamp:
- Feb 14, 2008, 2:47:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/ipp_serial_inject_split.pl
r14559 r16480 25 25 26 26 # Parse the command-line arguments 27 my ($workdir, $dbname, $telescope, $camera, $reduction, $help); 28 GetOptions( 29 'workdir|w=s' => \$workdir, # working directory for output files 27 my ($camera, $telescope, $workdir, $reduction, $dvo_db, $tess_id, $end_stage, $dbname, $help); 28 GetOptions('camera|c=s' => \$camera, # Camera used 29 'telescope|t=s' => \$telescope, # Telescope used 30 'workdir|w=s' => \$workdir, # working directory for output files 31 'reduction=s' => \$reduction, # user-supplied camera name 32 'dvodb=s' => \$dvo_db, # target dvo database 33 'tess_id=s' => \$tess_id, # tessalation for warping 34 'end_stage=s' => \$end_stage, # stop processing at this step 30 35 'dbname|d=s' => \$dbname, # Database name 31 'telescope|t=s' => \$telescope, # Telescope used 32 'camera|c=s' => \$camera, # Camera used 33 'reduction=s' => \$reduction, # user-supplied camera name 34 'help' => \$help # give help listing 36 'help' => \$help # give help listing 35 37 ) or pod2usage( 2 ); 36 38 … … 39 41 defined $help; 40 42 41 pod2usage( -msg => "Usage: $0 --telescope (name) --camera (name) [--workdir path] [--dbname dbname] (files)",43 pod2usage( -msg => "Usage: $0 --telescope (name) --camera (name) [--workdir path] [--dbname dbname] [--reduction class] [--dvodb db] [--tess_id tess] [--end_stage stage] [--dbname name] (files)", 42 44 -exitval => 2 ) if 43 45 scalar @ARGV == 0; 44 46 45 47 pod2usage( 46 -msg => "Required options: --camera --telescope --workdir --path --dbname",48 -msg => "Required options: --camera --telescope", 47 49 -exitval => 3) unless 48 50 defined $telescope and … … 53 55 54 56 # if workdir is not defined, assign the current path 55 # XXXwe need to handle relative paths for workdir (not allowed)57 # we need to handle relative paths for workdir (not allowed) 56 58 if (! $workdir) { 57 59 $workdir = File::Spec->rel2abs( "." ); … … 91 93 $command_exp .= " -tmp_telescope $telescope"; 92 94 $command_exp .= " -workdir $workdir"; 93 $command_exp .= " -dbname $dbname" if defined $dbname;94 95 $command_exp .= " -reduction $reduction" if defined $reduction; 96 $command_exp .= " -dvo_db $dvo_db" if defined $dvo_db; 97 $command_exp .= " -tess_id $tess_id" if defined $tess_id; 98 $command_exp .= " -end_stage $end_stage" if defined $end_stage; 99 $command_exp .= " -dbname $dbname" if defined $dbname; 95 100 96 101 my ( $success_exp, $error_code_exp, $full_buf_exp, $stdout_buf_exp, $stderr_buf_exp ) =
Note:
See TracChangeset
for help on using the changeset viewer.
