/
Running your first job

Running your first job

1. preparing the script by copy the template to your home

cd cp -r /project/common/Introduction-to-LANTA/firstJob/ .

2. navigating to firstJob directory

cd firstJob/

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

vi submit.sh

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

This script call 1 node (-N 1) and 1 CPU core (--cpus-per-task=1) for maximum 1 hour (-t 1:00:00) in compute partition (-p compute). The job will be named as fisrtjob (-J fisrtjob) and charged in lt123456 account (-A lt123456).

The script will print out "Welcome to LANTA" and "use 'myqueue' command to check job status", then sleep for 60 seconds.

4. submitting the job to the queueing system by using

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.

Related content

File transfers
File transfers
Read with this
การรัน Python Script บน LANTA โดยใช้โปรแกรม Apptainer
การรัน Python Script บน LANTA โดยใช้โปรแกรม Apptainer
More like this
การใช้งานคำสั่ง pip และ conda บน LANTA
การใช้งานคำสั่ง pip และ conda บน LANTA
Read with this
Running Jobs by SLURM Interactive (TARA)
Running Jobs by SLURM Interactive (TARA)
More like this
Running a Jupyter Notebook with Mamba on LANTA HPC
Running a Jupyter Notebook with Mamba on LANTA HPC
Read with this
Checking Job status
Checking Job status
More like this