modifiche per log errori

This commit is contained in:
2021-12-21 18:25:27 +01:00
parent c2af19dbd8
commit 78f677e47a

View File

@@ -57,7 +57,8 @@ my $G301_fcheck = 0;
my $CR1000X_fcheck = 0;
my $FtpToCustomerCmd = 'SendFtpElabData.pl';
my ( $scriptname, $scriptpath );
my $MatlabErrorFilename = "/mnt/elab-error/";
my $MatlabErrorPath = "/mnt/elab-error/";
my $MatlabErrorFilename = $MatlabErrorPath;
my @matlabOutputErrorArray;
my @errors;
my @warnings;
@@ -146,6 +147,9 @@ sub matlabCalc {
"ssh $matlab_exec_user\@$matlab_proxy_ssh -p $matlab_proxy_ssh_port \"sh -c \'cd $matlab_func_dir; $cmd_elab\'\"";
if ( system($args) != 0 ) {
my $argscat =
"sh -c \'cd $MatlabErrorPath; cat _${unit}_${tool}*_\*_output_error.txt > ${unit}${tool}_output_error.txt\'";
system($argscat);
open( my $fh, '<', $MatlabErrorFilename )
or warn print getTimeStamp("log")
. " - pid $$ >> Cannot open Matlab output error file: ${MatlabErrorFilename}\n";