Revision history  [back]

The problem solved. I wrote a job script and run Matlab from that. The issue was transferring the path to Matlab.
The job script is like this:

#!/bin/sh

#rm -r tmp-runtimes
#mkdir tmp-runtimes

cd (the path of matlab script)

INPUT=$1
echo "$INPUT" > script_log.out

NNNN="decoder_5spot('"${INPUT}"');exit;"
echo "$NNNN" >> script_log.out

# time -o time.out 
matlab -nodisplay -nosplash -nodesktop -r $NNNN

The problem solved. I wrote a job script and run Matlab from that. The issue was transferring the path to Matlab.
The job script is like this:

#!/bin/sh

!/bin/sh

#rm

rm -r tmp-runtimes #mkdir tmp-runtimes tmp-runtimes

mkdir tmp-runtimes

cd (the path of matlab script) script)

INPUT=$1 echo "$INPUT" > script_log.out script_log.out

NNNN="decoder_5spot('"${INPUT}"');exit;" echo "$NNNN" >> script_log.out script_log.out

#

time -o time.out time.out

matlab -nodisplay -nosplash -nodesktop -r $NNNN

$NNNN

The problem solved. I wrote a job script and run Matlab from that. The issue was transferring the path to Matlab.
The job script is like this:

!/bin/sh

rm -r tmp-runtimes

mkdir tmp-runtimes

cd (the path of matlab script)

INPUT=$1 echo "$INPUT" > script_log.out

NNNN="decoder_5spot('"${INPUT}"');exit;" echo "$NNNN" >> script_log.out

time -o time.out

matlab -nodisplay -nosplash -nodesktop -r $NNNN