I have the exact same situation, but system doesn&#39;t seem to wait. Here is my pseudo code:<br><br>for i in attempts:&nbsp; #attempts holds strings of shellscripts<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cmd=&quot;%s which runs many different shell scripts and takes about an hour&quot; % (i)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; os.system(cmd)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #debugging<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Finished with %s&quot; % (i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raw_input(&quot;More debugging, shouldn&#39;t see this until shell scripts are finished!&quot;)<br><br><br>But it prints the print statement and waits for raw_input instantly... Any thoughts?
<br><br><br><br><div><span class="gmail_quote">On 10/27/07, <b class="gmail_sendername">Eric Walker</b> &lt;<a href="mailto:sli1que@yahoo.com">sli1que@yahoo.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">disregard this one. I found the answer. I was using&nbsp; spawn instead of 
os.system.<br><br>Thanks.<div><span class="e" id="q_115e2bedffcbe8a6_1"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Eric Walker &lt;<a href="mailto:sli1que@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
sli1que@yahoo.com</a>&gt;<br>To: <a href="mailto:tutor@python.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">tutor@python.org</a><br>Sent: Saturday, October 27, 2007 9:55:05 AM<br>Subject: [Tutor] system call
<br><br>
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hello, <br>I am trying to run a timing script but I need the python program to stop and wait for the executable to finish. Does anyone have any examples of doing this?
<br><br>Thanks<br>Python Newbie<br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br><span><a href="http://mail.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mail.yahoo.com</a> </span></div><br></span></div></div></div><div><span class="e" id="q_115e2bedffcbe8a6_3"><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around 
<br><a href="http://mail.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.yahoo.com</a> </span></div></div><br>_______________________________________________<br>Tutor maillist &nbsp;- &nbsp;
<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tutor@python.org">Tutor@python.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">
http://mail.python.org/mailman/listinfo/tutor</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Configuration<br>``````````````````````````<br>Plone 2.5.3-final,<br>CMF-1.6.4,<br>Zope (Zope 2.9.7-final, python 
2.4.4, linux2),<br>Five 1.4.1,<br>Python 2.4.4 (#1, Jul 3 2007, 22:58:17) [GCC 4.1.1 20070105 (Red Hat 4.1.1-51)],<br>PIL 1.1.6