Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can i delete a shell script after it has been submitted using qsub without affecting the job?

I want to submit a a bunch of jobs using qsub - the jobs are all very similar. I have a script that has a loop, and in each instance it rewrites over a file tmpjob.sh and then does qsub tmpjob.sh . Before the job has had a chance to run, the tmpjob.sh may have been overwritten by the next instance of the loop. Is another copy of tmpjob.sh stored while the job is waiting to run? Or do I need to be careful not to change tmpjob.sh before the job has begun?

like image 320
miz Avatar asked Feb 06 '12 22:02

miz


People also ask

How qsub works?

The qsub command will submit the script to the server defined by the destination argument. If the destination is a routing queue, the job may be routed by the server to a new destination. If the -q option is not specified, the qsub command will submit the script to the default server.

What is qsub in Linux?

The qsub utility is a user-accessible batch client that submits a script. Upon successful completion, the qsub utility shall have created a batch job that will execute the submitted script. The qsub utility shall submit a script by sending a Queue Job Request to a batch server.

What qsub means?

qsub is an IEEE Std 1003.1-2008 Unix command for submitting jobs to a job scheduler, usually in cluster or grid computing. The qsub command is used to submit jobs to Slurm Workload Manager, to TORQUE, and to Oracle Grid Engine; HTCondor calls it condor_qsub.

How do I delete a job on PBS?

A job is deleted by sending a Delete Job batch request to the batch server that owns the job. A job that has been deleted is no longer subject to management by batch services. A batch job may be deleted by its owner, the batch operator, or the batch administrator.


1 Answers

Assuming you're talking about torque, then yes; torque reads in the script at submission time. In fact the submission script need never exist as a file at all; as given as an example in the documentation for torque, you can pipe in commands to qsub (from the docs: cat pbs.cmd | qsub.)

But several other batch systems (SGE/OGE, PBS PRO) use qsub as a queue submission command, so you'll have to tell us what queuing system you're using to be sure.

like image 154
Jonathan Dursi Avatar answered Oct 03 '22 00:10

Jonathan Dursi