by pass matlab elab on monitoring completed
This commit is contained in:
@@ -59,6 +59,7 @@ my @errors;
|
||||
my @warnings;
|
||||
my $MatlabErrors = '';
|
||||
my $MatlabWarnings = '';
|
||||
my $tool_status = '';
|
||||
|
||||
sub uniq {
|
||||
my %seen;
|
||||
@@ -122,6 +123,11 @@ sub writeOutSql {
|
||||
|
||||
sub matlabCalc {
|
||||
getMatlabCmd();
|
||||
if ( $tool_status eq 'Monitoring Completed' ) {
|
||||
print getTimeStamp("log")
|
||||
. " - pid $$ >> $unit - $tool - Monitoring completed: MatLab calc by-passed.\n";
|
||||
}
|
||||
else {
|
||||
$matlab_timestamp = getTimeStamp("db_ts");
|
||||
print getTimeStamp("log")
|
||||
. " - pid $$ >> $unit - $tool MatLab calc started...\n";
|
||||
@@ -135,8 +141,10 @@ sub matlabCalc {
|
||||
or die "cannot change: $!\n";
|
||||
print getTimeStamp("log")
|
||||
. " - pid $$ >> current dir: $matlab_func_dir\n";
|
||||
my @args =
|
||||
( 'timeout', $matlab_timeout, $matlab_cmd, $matlab_rt, $unit, $tool );
|
||||
my @args = (
|
||||
'timeout', $matlab_timeout, $matlab_cmd, $matlab_rt, $unit,
|
||||
$tool
|
||||
);
|
||||
if ( system(@args) != 0 ) {
|
||||
open( my $fh, '<', $MatlabErrorFilename )
|
||||
or warn print getTimeStamp("log")
|
||||
@@ -183,6 +191,7 @@ sub matlabCalc {
|
||||
}
|
||||
print getTimeStamp("log")
|
||||
. " - pid $$ >> $unit - $tool MatLab calc executed.\n";
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -299,6 +308,7 @@ sub getMatlabCmd {
|
||||
$matlab_cmd = $results->{'matcall'};
|
||||
$ftp_send = $results->{'ftp_send'};
|
||||
$unit_id = $results->{'unit_id'};
|
||||
$tool_status = $results->{'statustools'};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user