From ef4fabca55a562b5b0bf18cd83b273b7b56e7616 Mon Sep 17 00:00:00 2001 From: Alessandro Battilani Date: Thu, 23 Dec 2021 20:04:45 +0100 Subject: [PATCH] remove ssh matlab elab --- LoadCSVData.pl | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/LoadCSVData.pl b/LoadCSVData.pl index b7340e4..b05f5ac 100755 --- a/LoadCSVData.pl +++ b/LoadCSVData.pl @@ -138,12 +138,11 @@ sub matlabCalc { #print $ENV{"HOME"} . "\n"; $ENV{"HOME"} = "/" . $ENV{"HOME"}; - my $cmd_elab = - "timeout $matlab_timeout $matlab_cmd $matlab_rt $unit $tool"; - - #my $args = "sh -c \'cd $matlab_func_dir; pwd; $cmd_elab\'"; - - my $args = 'cd $matlab_func_dir; $cmd_elab'; + chdir($matlab_func_dir) + 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"; if ( system($args) != 0 ) { my $argscat =