- Timestamp:
- Jul 30, 2009, 5:20:29 PM (17 years ago)
- Location:
- branches/czw_branch/cleanup
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/receive_file.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/cleanup
- Property svn:mergeinfo changed
/trunk (added) merged: 24714-24742,24744-24784,24786-24798,24801-24824,24827-24834,24836-24859,24861-24901,24903-24912,24914-24939
- Property svn:mergeinfo changed
-
branches/czw_branch/cleanup/ippScripts/scripts/receive_file.pl
r24210 r24951 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.
