- Timestamp:
- Mar 30, 2011, 9:36:02 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/ippScripts/scripts/summit_copy.pl
r25418 r31083 22 22 23 23 # Parse the command-line arguments 24 my ( $uri, $filename, $compress, $bytes, $md5, $nebulous, $ exp_name, $inst, $telescope, $class, $class_id,24 my ( $uri, $filename, $compress, $bytes, $md5, $nebulous, $summit_id, $exp_name, $inst, $telescope, $class, $class_id, 25 25 $dbname, $verbose, $no_update, $no_op, $timeout, $copies ); 26 26 GetOptions( … … 31 31 'md5=s' => \$md5, # reported md5 checksum 32 32 'nebulous' => \$nebulous, # use nebulous for the target file 33 'summit_id=s' => \$summit_id, # summit_id for this exposure 33 34 'exp_name=s' => \$exp_name, # Exposure name 34 35 'inst=s' => \$inst, # Instrument … … 45 46 46 47 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 47 pod2usage( -msg => "Required options: --uri --filename -- exp_name --inst --telescope --class --class_id",48 pod2usage( -msg => "Required options: --uri --filename --summit_id --exp_name --inst --telescope --class --class_id", 48 49 -exitval => 3) 49 50 unless defined $uri 50 51 and defined $filename 52 and defined $summit_id 51 53 and defined $exp_name 52 54 and defined $inst … … 110 112 $command = "$pztool -copydone"; 111 113 $command .= " -row_lock"; 114 $command .= " -summit_id $summit_id"; 112 115 $command .= " -exp_name $exp_name"; 113 116 $command .= " -inst $inst"; … … 236 239 my $command; 237 240 $command = "$pztool -copydone"; 241 $command .= " -summit_id $summit_id"; 238 242 $command .= " -exp_name $exp_name"; 239 243 $command .= " -inst $inst"; … … 246 250 247 251 system ($command); 252 253 if ($exit_code == 110) { 254 $command = "$pztool -updatepzexp"; 255 $command .= " -exp_name $exp_name"; 256 $command .= " -camera $inst"; 257 $command .= " -telescope $telescope"; 258 $command .= " -set_state drop"; 259 $command .= " -dbname $dbname" if defined $dbname; 260 261 system ($command); 262 } 263 248 264 } 249 265
Note:
See TracChangeset
for help on using the changeset viewer.
