18 lines
264 B
Bash
18 lines
264 B
Bash
#!/bin/sh
|
|
LOGFILE=log.txt
|
|
|
|
rm -f "$LOGFILE"
|
|
|
|
matlab -nodesktop -nosplash -wait -noFigureWindows -logfile "$LOGFILE" -r Git_MATLAB_interface;
|
|
CODE=$?
|
|
|
|
if [ -f "result.txt" ]
|
|
then
|
|
CODE=`cat result.txt`
|
|
else
|
|
echo "MATLAB crash unexpected"
|
|
CODE=1
|
|
fi
|
|
|
|
exit $CODE
|