#! /bin/csh -f # #$ -cwd #$ -V #$ -j y #$ -o Cylinder.log #$ -S /bin/csh # # Dummy CSH Matlab script `Xvfb :1 -screen 0 1600x1200x24 &` setenv DISPLAY :1.0 #EXAMPLES if ($#argv<1) then echo 'Need to specify at least one case number' else echo Starting Case $argv[1] using MATLAB at `date` #test is the name of the MATLAB script, you'll have to change this name if your MATLAB script has a different name cd ../.. matlab -nodesktop -nosplash -r 'setupp, cd Cases/randomBCS, CylinderRunScript('$argv[1]')',exit echo Finished Case $argv[1] using MATLAB at `date` endif