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

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
what is 'Gbytes seconds'?
Wait for set of qsub jobs to complete

Categories

HOME
sharepoint
shopify
bower
youtube-livestreaming-api
deep-linking
user
pygame
ng-admin
data-analysis
qt-installer
symfony-forms
multiple-monitors
cloudflare
phpbb
redux-observable
pyyaml
ng-show
atlassian-plugin-sdk
ios10.3
cython
statusbar
excel-2010
autolayout
epicor
data-cleansing
metadata-extractor
system.data.sqlite
positioning
pitest
superscript
red-black-tree
graph-databases
ios-ui-automation
inkscape
readfile
duktape
haskell-pipes
brute-force
excel-interop
apiary
aqgridview
react-native-fbsdk
fontconfig
httplib2
castle-dynamicproxy
adler32
polar-coordinates
pspice
cjson
console-redirect
lmfit
sparse-file
stackframe
obfuscar
activity-streams
cpu-speed
left-recursion
libsndfile
scala-2.11
code-testing
level
kraken.js
factors
operations
modeshape
robospice
jqmobi
gridworld
ienumerator
surveyor-gem
client-library
code-conversion
redirectstandardoutput
signals2
entity-framework-ctp5
nemerle
scraperwiki
authenticode
trampolines
graniteds
code-design
multibyte-functions
openwysiwyg
weborb
associativity
dotproject

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