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

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
duplicate jobs in sun grid engine
SGE qsub define variable using bach?
Job chaining with qsub
Determine Load Status in qsub

Categories

HOME
crystal-reports
elixir
nlp
vb6
blockchain
wildcard
antivirus
angular2-routing
computer-vision
survival-analysis
orientation
urlencode
packer
hashicorp-vault
cs-cart
multiple-monitors
quartus
eclipselink
mousewheel
kadanes-algorithm
scalaz7
url.action
os161
avplayeritem
kitematic
facebook4j
croppic
katharsis
web-frontend
thinking-sphinx
gzip
piecewise
twitter-bootstrap-2
smart-mobile-studio
hotmail
nsurlconnection
service-locator
jquery-cycle2
readfile
delphi-10.1-berlin
stdclass
finite-element-analysis
stress-testing
rich-text-editor
tuleap
dimple.js
uiviewpropertyanimator
spring-data-hadoop
in-memory-database
search-box
addin-express
lotus
coremidi
system.web.ui.webcontrols
packagemaker
chessboard.js
firepath
angularjs-ng-pattern
jackson-databind
gmsmapview
direct3d12
affix
rad
vine
team-build
ubercart
cpu-cores
pgm
adobe-indesign
google-earth-plugin
tilestache
viewflipper
activity-streams
emma
valence
android-looper
sgml
initialization-vector
openkinect
osx-snow-leopard
image-zoom
symphony-cms
transitive-closure-table
android-4.0
gdt
text-services-framework
datacontract
charts4j
port-scanning
symbol-server
pantheios
requestfactory
external-assemblies
act
hmacsha1
castle-validators
database-diagramming

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