I don't know whether this is the right place for posting this question, if not kindly let me know where I can ask.My doubt: I use the following code to submit a job on a cluster, but I don't know what these code means. Can some one explain me what the following code means if possible line-by-line. #!/bin/bash#PBS -N NAME_OF_JOB#PBS -l nodes=1:ppn=20#PBS -l matlab_user=1#PBS -l matlab_lic=20#PBS -l min_walltime=1:00#PBS -q small#PBS -S /bin/bash##PBS -V##PBS -m abe#PBS -j oe#cd $PBS_O_WORKDIRcat $PBS_NODEFILEexport PATH=/opt/software/matlabr2014a/mdcs/bin:$PATHmatlab -nodisplay -r code1 -logfile code1.logThanks
Code for submitting job on cluster
ssh;cluster;high performance;cluster ssh
These commands are for a task scheduler. There are several different ones, but this looks like the format for torque, which I am very familiar with. Torque - http://docs.adaptivecomputing.com/torque/5-1-0/help.htmHere is the torque 5 documentation. You may be running 2.x, 4.x or 5.xhttp://docs.adaptivecomputing.com/torque/5-1-0/help.htm#topics/torque/commands/qsub.htm?Highlight=-m%20abe#PBS -N NAME_OF_JOB => Sets a name that can be identified in `qstat` or `checkjob`#PBS -l nodes=1:ppn=20 => Requests 20 tasks, (1 node with 20 processors, 2 nodes with 10 processors ect...)#PBS -l matlab_user=1 #PBS -l matlab_lic=20 #PBS -l min_walltime=1:00 => The job should run for at least 1 minute#PBS -q small => => queue or class you administrator has configured#PBS -S /bin/bash => Shell to use##PBS -V => Commented out, exports environment variables to batch job##PBS -m abe => Commented out, specifies when mail should be sent (abort, begin, end)#PBS -j oe => Combine stdout and stderror into one directorycd $PBS_O_WORKDIR => Environment variable of where the job runscat $PBS_NODEFILE => prints out the output of the spool. 