exec elab via ssh
This commit is contained in:
@@ -135,19 +135,13 @@ sub matlabCalc {
|
|||||||
#print $ENV{"HOME"} . "\n";
|
#print $ENV{"HOME"} . "\n";
|
||||||
$ENV{"HOME"} = "/" . $ENV{"HOME"};
|
$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 =
|
my $cmd_elab =
|
||||||
"timeout $matlab_timeout $matlab_cmd $matlab_rt $unit $tool";
|
"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 =
|
||||||
|
"ssh $matlab_proxy_ssh -p $matlab_proxy_ssh_port \"sh -c \'cd $matlab_func_dir; pwd; $cmd_elab\'\"";
|
||||||
#my $args = "timeout $matlab_timeout $matlab_cmd $matlab_rt $unit $tool";
|
|
||||||
|
|
||||||
if ( system($args) != 0 ) {
|
if ( system($args) != 0 ) {
|
||||||
open( my $fh, '<', $MatlabErrorFilename )
|
open( my $fh, '<', $MatlabErrorFilename )
|
||||||
|
|||||||
Reference in New Issue
Block a user