exec elab via ssh

This commit is contained in:
2021-11-06 18:35:14 +01:00
parent db2d44e8f1
commit 265fa50091

View File

@@ -135,19 +135,13 @@ sub matlabCalc {
#print $ENV{"HOME"} . "\n";
$ENV{"HOME"} = "/" . $ENV{"HOME"};
#chdir($matlab_func_dir)
# or die "cannot change: $!\n";
#print getTimeStamp("log")
# . " - pid $$ >> current dir: $matlab_func_dir\n";
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 = "sh -c \'cd $matlab_func_dir; pwd; $cmd_elab\'";
#my $args = "ssh $matlab_proxy_ssh -p $matlab_proxy_ssh_port sh -c \'cd $matlab_func_dir; $cmd_elab\'";
#my $args = "timeout $matlab_timeout $matlab_cmd $matlab_rt $unit $tool";
my $args =
"ssh $matlab_proxy_ssh -p $matlab_proxy_ssh_port \"sh -c \'cd $matlab_func_dir; pwd; $cmd_elab\'\"";
if ( system($args) != 0 ) {
open( my $fh, '<', $MatlabErrorFilename )