qsub


SGE qsub define variable using bach?


I am trying to automatically set up several variables for SGE system but get no luck.
#!/bin/bash
myname="test"
totaltask=10
#$ -N $myname
#$ -cwd
#$ -t 1-$totaltask
apparently $myname will not be recognized. any solution?
thanks a lot
Consider making a wrapper function
qsub_file.sh
#!/bin/bash
#$ -V
#$ -cwd
wrapper_script.sh
#!/bin/bash
myname="test"
totaltask=10
qsub qsub_script.sh -N ${myname} -t 1-${totaltask}

Related Links

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
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

Categories

HOME
answer-set-programming
project-management
websphere
jsviews
boost-thread
cpu-architecture
flyway
simpy
google-spreadsheet-api
structuremap
cakephp-2.9
wysiwyg
cs-cart
store
r-lavaan
bootstrap-popover
derived
google-people
extractor
cep
widevine
image-quality
owl-api
reply
thinking-sphinx
picturebox
oracle-xml-db
pljson
mapguide
shibboleth
vmd
image-compression
restful-url
android-preferences
dart-pub
nsexception
react-native-router-flux
service-fabric-stateful
median
filepath
livefyre
webdatagrid
multi-agent
spell-checking
android-bitmap
jexl
tofixed
cjson
backstop.js
c#-interactive
picasa
pax-web
scalar
django-filer
spring-lemon
gradle-release-plugin
freefem++
sun-codemodel
android-viewholder
enyo
uialertview
android-snackbar
qbfc
mptcp
calibration
on-duplicate-key
google-plus-one
em
node-imagemagick
method-overriding
yahoo-boss-api
operations
facebook-chat
bfd
bigint
modeshape
trimming
dropdownlistfor
pitch
couchdb-lucene
deploying
mysql-error-1045
datamember
gtk2hs
nvelocity
msn
carbide
hibernate3-maven-plugin
surefire
task-management
trampolines
opcodes

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