fix user e path
This commit is contained in:
@@ -30,6 +30,7 @@ my (
|
||||
);
|
||||
my $matlab_proxy_ssh = "80.211.107.201";
|
||||
my $matlab_proxy_ssh_port = 2222;
|
||||
my $matlab_exec_user = 'aselab';
|
||||
my $matlab_cmd = "";
|
||||
my $matlab_timestamp = "";
|
||||
my $ftp_send = 1;
|
||||
@@ -43,7 +44,7 @@ my $duedate = '';
|
||||
my ( $unit_id, $unit, $unittype );
|
||||
my ( $fileDate, $fileTime );
|
||||
my $matlab_rt = "/usr/local/MATLAB/MATLAB_Runtime/v93";
|
||||
my $matlab_func_dir = "/mnt/elab-storage";
|
||||
my $matlab_func_dir = "/usr/local/matlab_func/";
|
||||
my $matlab_error = '';
|
||||
my $matlab_timeout = '1800';
|
||||
my $email_addr =
|
||||
@@ -56,7 +57,7 @@ my $G301_fcheck = 0;
|
||||
my $CR1000X_fcheck = 0;
|
||||
my $FtpToCustomerCmd = 'SendFtpElabData.pl';
|
||||
my ( $scriptname, $scriptpath );
|
||||
my $MatlabErrorFilename = "/mnt/elab-error";
|
||||
my $MatlabErrorFilename = "/mnt/elab-error/";
|
||||
my @matlabOutputErrorArray;
|
||||
my @errors;
|
||||
my @warnings;
|
||||
@@ -142,7 +143,7 @@ sub matlabCalc {
|
||||
#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\'\"";
|
||||
"ssh $matlab_exec_user\@$matlab_proxy_ssh -p $matlab_proxy_ssh_port \"sh -c \'cd $matlab_func_dir; $cmd_elab\'\"";
|
||||
|
||||
if ( system($args) != 0 ) {
|
||||
open( my $fh, '<', $MatlabErrorFilename )
|
||||
|
||||
Reference in New Issue
Block a user