Changeset 24894
- Timestamp:
- Jul 22, 2009, 11:27:18 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/receive_file.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/receive_file.pl
r24210 r24894 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.
