How to specify a fixed job name for jobs submitted by qsub
I use -N option to specify the name for the job when submitting through qsub. The qsub, however, adds some numeric string after thejob name as described in the man page: By default the file name for standard output has the form job_name.ojob_id and job_name.ojob_id.task_id for array job tasks (see -t option below). Therefore, whenever I submit a new job with same job name, a new suffix .ojob_id is added to the job name and a new output file is created. What I trying to achieve is to have same output file each time a job is submitted through qsub. How can I do that? I have to run a job several time and I want the output from a run to overwrite the output file generated in the previous run. How can I achieve that? See the example below: First time command is given to run script hello_world to output in log_hello_world: qsub -cwd -N log_hello_world hello_world.sh It creates two output files: log_hello_world.e7584345 log_hello_world.o7584345 Second time the same command is given: It creates two more output files log_hello_world.e7584366 log_hello_world.o7584366 What can I do to get the output in just one file log_hello_world.
I was able to resolve this issue by using options -o and -e to save the log and the error files respectively. With these options, the log and the errors from the job are written into same file every time from this command. qsub -cwd -N job_hello_world -o log.hello_world -e error.hello_world hello_world.sh
SGE Issue qstat qsub not working
Checking output from qsub : Sungrid cluster
qsub: get last job id submitted
Job summited with qsub does not write output and enters E status
Qsub job runs but doesn't write to file
Qsub job not running - possible issue in submission script
How do I know where my qsub job is running/being written
Pipe Symbol in qsub Job name
SLURM how to qsub a task when another task is finished?
Can multiple qsub submissions read the same group of files?
SGE faild to submit job, attribute is not a memory value
How do you submit a job on multiple queues with Torque?
Maui - preventing jobs from running on the same node
qsub: What is the standard when to get occasional updates on a submitted job?
Submitting a job to qsub generates an error, “Warning: no access to tty”
Running samtools from a qsub