modifiche per log errori
This commit is contained in:
@@ -57,7 +57,8 @@ my $G301_fcheck = 0;
|
|||||||
my $CR1000X_fcheck = 0;
|
my $CR1000X_fcheck = 0;
|
||||||
my $FtpToCustomerCmd = 'SendFtpElabData.pl';
|
my $FtpToCustomerCmd = 'SendFtpElabData.pl';
|
||||||
my ( $scriptname, $scriptpath );
|
my ( $scriptname, $scriptpath );
|
||||||
my $MatlabErrorFilename = "/mnt/elab-error/";
|
my $MatlabErrorPath = "/mnt/elab-error/";
|
||||||
|
my $MatlabErrorFilename = $MatlabErrorPath;
|
||||||
my @matlabOutputErrorArray;
|
my @matlabOutputErrorArray;
|
||||||
my @errors;
|
my @errors;
|
||||||
my @warnings;
|
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\'\"";
|
"ssh $matlab_exec_user\@$matlab_proxy_ssh -p $matlab_proxy_ssh_port \"sh -c \'cd $matlab_func_dir; $cmd_elab\'\"";
|
||||||
|
|
||||||
if ( system($args) != 0 ) {
|
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 )
|
open( my $fh, '<', $MatlabErrorFilename )
|
||||||
or warn print getTimeStamp("log")
|
or warn print getTimeStamp("log")
|
||||||
. " - pid $$ >> Cannot open Matlab output error file: ${MatlabErrorFilename}\n";
|
. " - pid $$ >> Cannot open Matlab output error file: ${MatlabErrorFilename}\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user