tolta esecuzione remota - raccolta errori x mail
This commit is contained in:
@@ -57,7 +57,8 @@ my $G301_fcheck = 0;
|
||||
my $CR1000X_fcheck = 0;
|
||||
my $FtpToCustomerCmd = 'SendFtpElabData.pl';
|
||||
my ( $scriptname, $scriptpath );
|
||||
my $MatlabErrorFilename = "/tmp/";
|
||||
my $MatlabErrorPath = "/tmp/";
|
||||
my $MatlabErrorFilename = $MatlabErrorPath;
|
||||
my @matlabOutputErrorArray;
|
||||
my @errors;
|
||||
my @warnings;
|
||||
@@ -142,10 +143,13 @@ sub matlabCalc {
|
||||
|
||||
#my $args = "sh -c \'cd $matlab_func_dir; pwd; $cmd_elab\'";
|
||||
|
||||
my $args =
|
||||
"ssh $matlab_exec_user\@$matlab_proxy_ssh -p $matlab_proxy_ssh_port \"sh -c \'cd $matlab_func_dir; $cmd_elab\'\"";
|
||||
my $args = 'cd $matlab_func_dir; $cmd_elab';
|
||||
|
||||
if ( system($args) != 0 ) {
|
||||
my $argscat =
|
||||
"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";
|
||||
|
||||
Reference in New Issue
Block a user