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