- Timestamp:
- Aug 7, 2009, 12:45:24 PM (17 years ago)
- Location:
- branches/eam_branches/20090715
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/receive_file.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715
- Property svn:mergeinfo changed
/trunk (added) merged: 24801-24824,24827-24834,24836-24859,24861-24901,24903-24912,24914-24950,24953-24971,24973-24977,24986-24989,24993-25017
- Property svn:mergeinfo changed
-
branches/eam_branches/20090715/ippScripts/scripts/receive_file.pl
r24210 r25022 19 19 use PS::IPP::Metadata::List qw( parse_md_list ); 20 20 use PS::IPP::Config 1.01 qw( :standard ); 21 use File::Temp qw( tempfile );21 use File::Temp qw( tempfile tempdir ); 22 22 use File::Basename qw( basename ); 23 23 use Carp; … … 35 35 } 36 36 37 my $temp dir= "/tmp";37 my $temproot = "/tmp"; 38 38 39 39 # Parse the command-line arguments … … 72 72 defined $workdir; 73 73 74 $tempdir .= "/$file_id";74 my $tempdir = tempdir( "$temproot/receive.$file_id.XXXX", CLEANUP => !$save_temps); 75 75 76 76 &my_die( "dirinfo is NULL for $component", $file_id, $PS_EXIT_CONFIG_ERROR ) … … 329 329 } 330 330 331 if (!$save_temps and -e $filename) {332 unlink $filename or &my_die( "Unable to unlink $filename\n", $file_id, $PS_EXIT_UNKNOWN_ERROR);333 }334 331 my $mjd_extract = DateTime->now->mjd; # MJD of finishing extract 335 336 332 337 333 # All done
Note:
See TracChangeset
for help on using the changeset viewer.
