qsub


Submitting a job to qsub generates an error, “Warning: no access to tty”


I am trying to run a job via qsub.
This is my script:
run.sh:
#/bin/sh
java -jar project-test-0.1.0-SNAPSHOT.jar
This script works fine when I execute it by ./run.sh
Since it prints some result, I want to do this via qsub:
./run.sh > output
But when I do:
qsub -cwd -o output.log run.sh
Instead of printing the result in output.log, output.log has the following printed:
Warning: no access to tty (Bad file descriptor).
Thus no job control in this shell.
When I simply do
qsub run.sh
It only says that the job has been submitted, but doesn't print anything anywhere.
Could you help me figuring out what to do to get the job done? Thanks.

Related Links

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
what is 'Gbytes seconds'?

Categories

HOME
ajax
google-cloud-bigtable
project-management
puppet
aem
chaiscript
heap-memory
wampserver
bro
triggers
shader
shipping
ndis
dlib
cloudflare
mod-pagespeed
sql-tuning
internet-explorer-8
jsonserializer
attask
mousewheel
jquery-form-validator
facebook4j
python-textprocessing
jenkins-job-dsl
osmdroid
pptp
version-numbering
i3
superagent
websauna
dhtmlx-scheduler
cell-array
gpib
hibernate-cache
polymorphism
sidr
nunit-3.0
readfile
socketpair
sonarqube-scan
active-model-serializers
brute-force
knockout-3.0
ivona
3scale
proof
shutdown
payu
inject
activeweb
rstudio-server
update-site
bacnet
windows-nt
asynccallback
interactive-brokers
persistence.xml
vine
type-mismatch
git-checkout
alphablending
candidate-key
tcpreplay
node-inspector
docopt
colt
picat
help-viewer
anjuta
magicalrecord-2.2
installshield-2011
htmltextwriter
xml-libxml
couchdb-lucene
radchart
mysql-error-1045
hashalgorithm
coff
qtembedded
smooth
aio
google-instant
pci-bus
code-design
oggvorbis
handheld
economics

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