By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,272 Members | 1,733 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,272 IT Pros & Developers. It's quick & easy.

How to config qsub from python .psp script?

P: 1
I am writing a code which will submit some programs from the web front. I wrote some python classes which works perfectly OK in python environment:
commline = 'qsub'
sta = commands.getstatusoutput(commline)

However, when I move to .psp environment, the first error is:
qSub results:(32512, 'sh: qsub: command not found'),

Then I added the <path> before qsub. /opt/SGE/bin/lx24-x86/qsub

However, new error appears:
err:qSub results: (256, '\nUnable to initialize environment because of error: Please set the environment variable SGE_ROOT.\nExiting.')

Does anyone know how to configure running batch of qsub from .psp environment?

Many thanks,

Mar 27 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.