Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21571 > unrolled thread

Re: concatenate function

Started byRobert Kern <robert.kern@gmail.com>
First post2012-03-13 16:09 +0000
Last post2012-03-13 16:09 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: concatenate function Robert Kern <robert.kern@gmail.com> - 2012-03-13 16:09 +0000

#21571 — Re: concatenate function

FromRobert Kern <robert.kern@gmail.com>
Date2012-03-13 16:09 +0000
SubjectRe: concatenate function
Message-ID<mailman.619.1331655008.3037.python-list@python.org>
On 3/13/12 3:59 PM, ferreirafm wrote:
> Hi Robert,
> Thanks for you kind replay and I'm sorry for my semantic mistakes.
> Indeed, that's what I'm doing: qsub-ing different cshell scripts. Certainly,
> that's not the best approach and the only problem.

It's not a problem to write out a script and have qsub run it. That's a 
perfectly fine thing to do. You need to read the documentation for your job 
queue to find out the right arguments to give to qsub to make it wait until the 
first job finishes before executing the second job. This is not a Python 
problem. You just need to find the right flags to give to qsub.

Alternately, you could just make a single .qsub script running all three of your 
programs in a single job instead of making three separate .qsub scripts.

> I've unsuccessfully tried
> to set an os.environ and call qsub from it. However, subprocess.Popen seems
> not accept to run "qsub" over a second program. Do you have a over come to
> this issue?
> Code goes here:
> http://ompldr.org/vZDB5YQ

When you report a problem, you should copy-and-paste the output that you got and 
also state the output that you expected. I have no idea what you mean when you 
say "subprocess.Popen seems not accept to run "qsub" over a second program."

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web