Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

3. modify the script according to your registration detail, i.e. change lt123456 (line 7) to your own project ID.

using text editor to edit the file submit.sh

Code Block
vi submit.sh

to save, using :w. to exit the test editor, using :q.

Code Block
#!/bin/bash -l
#SBATCH -p compute                 #specify partition
#SBATCH -N 1                       #specify number of nodes
#SBATCH --cpus-per-task=1          #specify number of cpus
#SBATCH -t 1:00:00                 #job time limit <hr:min:sec>
#SBATCH -J fisrtjob                #job name
#SBATCH -A lt123456                #specify your account ID

module purge

echo "Welcome to LANTA"
echo "use 'myqueue' command to check job status"
sleep 60

...

5. use myqueue command to check your job status, see Checking Job status for mor detail.

6. use cat slurm-[xxxxxx].out command, where [xxxxxx] is jobID, to check output.