qsub


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

Related Links

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
How do I schedule a job on multiple nodes with qsub Univa 8.1.7?
How to specify a fixed job name for jobs submitted by qsub
duplicate jobs in sun grid engine
SGE qsub define variable using bach?
Job chaining with qsub
Determine Load Status in qsub
How to avoid this error ?Unable to run job: error: no suitable queues
Silently submit a job with qsub to SGE

Categories

HOME
laravel-5
visual-studio-2015
udp
wmic
backup
apollo
tumblr
file-io
sequelize.js
data-science-experience
click
jboss-eap-7
store
maxima
pdo
spring-cloud-config
chocolatey
fop
multiplayer
bcrypt
jquery-waypoints
nmf
npm-install
logarithm
pentaho-report-designer
data-conversion
pcre
percentage
geopy
passenger
remote-server
oscommerce
autocompletetextview
magiczoomplus
visualstudio.testtools
tic-tac-toe
exiftool
ical-dotnet
asmx
lirc
timesten
gist
mouseclick-event
workflow-foundation-4.5
greenhills
photography
search-box
rsqlite
sql-server-administration
multiple-file-upload
nssplitview
uwp-maps
mpeg-4
amazon-kcl
handlebars.java
servlet-3.0
hateoas
lemoon
file-diffs
jericho-html-parser
retro-computing
calibration
manjaro
harp
ytplayerview
cpu-cores
rspec3
epl
obfuscar
inputaccessoryview
facebook-wall
ssms-addin
httpcontext
delphi-xe3
help-viewer
bounds
visual-c++-2010-express
arangodb-php
bfd
onselect
vertical-rhythm
nimrod
goinstant
client-side-scripting
osi
moq-3
blockingqueue
applicationcontext
ajax.beginform
email-spec
winsnmp

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App