Re: concatenate function

2012-03-14 Thread ferreirafm
Hi there, The problem has been solved. I 've decided to run the python script as argument of qsub instead of run qsub from inside of the script itself. I also use .wait() as suggest by colleagues above. Final code goes here: http://ompldr.org/vZDFiag Thank you very much for helping. -- View th

Re: concatenate function

2012-03-13 Thread Chris Rebert
On Tue, Mar 13, 2012 at 1:35 PM, Robert Kern wrote: > On 3/13/12 6:01 PM, ferreirafm wrote: >> Robert Kern-2 wrote >>> 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 >>>

Re: concatenate function

2012-03-13 Thread Robert Kern
On 3/13/12 6:01 PM, ferreirafm wrote: Robert Kern-2 wrote 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."

Re: concatenate function

2012-03-13 Thread ferreirafm
Robert Kern-2 wrote > > 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." > Code goes here: htt

Re: concatenate function

2012-03-13 Thread Robert Kern
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 q

Re: concatenate function

2012-03-13 Thread James Elford
On 13/03/12 16:02, ferreirafm wrote: > Hi James, thank you for your replay. Indeed, the problem is qsub. And as > warned by Robert, I don't have functions properly, but just scripts. > > > -- > View this message in context: > http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.

Re: concatenate function

2012-03-13 Thread ferreirafm
Hi James, thank you for your replay. Indeed, the problem is qsub. And as warned by Robert, I don't have functions properly, but just scripts. -- View this message in context: http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.html Sent from the Python - python-list mailing lis

Re: concatenate function

2012-03-13 Thread ferreirafm
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. I've unsuccessfully tried to set an os.environ and call qsub from it. However, subprocess.Po

Re: concatenate function

2012-03-13 Thread James Elford
On 13/03/12 14:35, ferreirafm wrote: > Hi List, > I've coded three functions that I would like to concatenate. I mean, run > them one after another. The third function depends on the results of the > second function, which depends on the results of the first one. When I call > one function after an

Re: concatenate function

2012-03-13 Thread ferreirafm
Hi Ian, That what I have: > burst.py Your job 46665 ("top_n_pdb.qsub") has been submitted Your job 4 ("extr_pdb.qsub") has been submitted Your job 46667 ("combine_top.qsub") has been submitted The first job runs quite well. The second is still runing and the third issue the following: > more

Re: concatenate function

2012-03-13 Thread Robert Kern
On 3/13/12 2:35 PM, ferreirafm wrote: Hi List, I've coded three functions that I would like to concatenate. I mean, run them one after another. The third function depends on the results of the second function, which depends on the results of the first one. When I call one function after another,

Re: concatenate function

2012-03-13 Thread Ian Kelly
On Tue, Mar 13, 2012 at 8:35 AM, ferreirafm wrote: > Hi List, > I've coded three functions that I would like to concatenate. I mean, run > them one after another. The third function depends on the results of the > second function, which depends on the results of the first one. When I call > one fu