how to specify error log file and output file in qsub

Typically error and output files are given as pbs directives in the qsub script or as command line options to the qsub script like so: #! /bin/bash #PBS -q queue_name #PBS -A account_name #PBS -l nodes=12:ppn=12 #PBS -l walltime=18:00:00 #PBS -e /mypath/error.txt #PBS -o /mypath/output.txt or as a command line option to qsub like so: … Read more

Wait for set of qsub jobs to complete

Launch your qsub jobs, using the -N option to give them arbitrary names (job1, job2, etc): qsub -N job1 -cwd ./job1_script qsub -N job2 -cwd ./job2_script qsub -N job3 -cwd ./job3_script Launch your script and tell it to wait until the jobs named job1, job2 and job3 are finished before it starts: qsub -hold_jid job1,job2,job3 … Read more