qsub (multiple commands)

PHOTO EMBED

Thu Jun 01 2023 18:57:06 GMT+0000 (Coordinated Universal Time)

Saved by @vs #bash

# submit a job after a set of jobs are completed
job_ids=("job_1" "job_2")
hold_jid=$(IFS=,; echo "${job_ids[*]}")
qsub -hold_jid "${hold_jid}" your_new_job_script.sh

# list all the active jobs
qstat
qstat -u user

# refresh list every 2 seconds
watch -n 2 qstat -u user

# kill job
qdel JOB-ID
content_copyCOPY