Changeset 28003 for branches/pap/ippScripts/scripts/receive_file.pl
- Timestamp:
- May 18, 2010, 12:49:05 PM (16 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/receive_file.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ippScripts/scripts/receive_file.pl
r25940 r28003 7 7 use Sys::Hostname; 8 8 my $host = hostname(); 9 print "Starting script $0 on $host\n\n"; 9 my $date = `date`; 10 print "\n\n"; 11 print "Starting script $0 on $host at $date\n\n"; 10 12 11 13 use DateTime; … … 124 126 print "dirinfo resolved is: $resolved\n" if $verbose; 125 127 126 open OUT, ">$resolved" 128 open OUT, ">$resolved" 127 129 or &my_die( "failed to open $resolved\n", $file_id, $PS_EXIT_UNKNOWN_ERROR); 128 130 print OUT @$dirinfo_lines … … 130 132 close OUT 131 133 or &my_die( "failed to close $resolved\n", $file_id, $PS_EXIT_UNKNOWN_ERROR); 132 134 133 135 # update the fileset to allow processing of other files 134 136 my $command = "$receivetool -updatefileset -fileset_id $fileset_id"; … … 160 162 &my_die( "failed to resolve $dbinfo_uri\n", $file_id, $PS_EXIT_UNKNOWN_ERROR) if !$resolved; 161 163 162 open OUT, ">$resolved" 164 open OUT, ">$resolved" 163 165 or &my_die( "failed to open $resolved\n", $file_id, $PS_EXIT_UNKNOWN_ERROR); 164 166 … … 227 229 $current_component = $value; 228 230 $component_dir = $components->{$current_component}; 229 &my_die( "$component_dir is null for $value in $filename: $runType\n", 231 &my_die( "$component_dir is null for $value in $filename: $runType\n", 230 232 $file_id, $PS_EXIT_UNKNOWN_ERROR) if !$component_dir; 231 233 } elsif ($name eq 'workdir') { … … 237 239 $new_value = basename($value); 238 240 } elsif ((($name eq 'uri') or ($name eq 'path_base')) and ($value ne 'NULL')) { 239 &my_die( "$component_dir is null and we need it for $name", 241 &my_die( "$component_dir is null and we need it for $name", 240 242 $file_id, $PS_EXIT_PROG_ERROR) if !$component_dir; 241 243
Note:
See TracChangeset
for help on using the changeset viewer.
