#! /bin/csh -f # #$ -cwd #$ -V #$ -j y #$ -o ml_SymLockExchange_sml.log #$ -S /bin/csh # # Dummy CSH Matlab script cd ../.. #EXAMPLES if ($#argv<1) then echo 'Need to specify at least one matlab command' else foreach name($argv) #test is the name of the MATLAB script, you'll have to change this name if your MATLAB script has a different name matlab -nodesktop -r 'setupp, cd Cases/DOnumPap, LockExchangeSymRunScript('$name')',exit #LockExchangeRunScript('$name',true)',exit echo Executed $name using MATLAB end endif