#!/bin/sh # Execute matlab script, but remove the header message LOG="$(__MATLAB__ -nojvm -nodisplay -r "try;__M_PROG__;catch ME;fprintf('1..1\nBail out! Could not execute __M_PROG__: %s\n',ME.message);end;exit" | __SED__ '1,10d')" ES=$? if test $ES -gt 0 ;then exit $ES fi echo "$LOG" exit 0