<div class="gmail_quote">On Fri, Sep 25, 2009 at 6:09 AM, Dave Angel <span dir="ltr"><<a href="mailto:davea@ieee.org">davea@ieee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sean DiZazzo wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
On Sep 24, 4:37 pm, Dave Angel <<a href="mailto:da...@ieee.org" target="_blank">da...@ieee.org</a>> wrote:<br>
  <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<snip><br>
      <br>
</blockquote><div class="im">
Why not just use the subprocess module?   It's built into the Windows<br>
distribution, and doesn't need cygwin.<br>
<br>
DaveA<br>
    <br>
</div></blockquote><div class="im">
<br>
Can subprocess pass things like passwords to running processes like<br>
pexpect can?<br>
<br>
~Sean<br>
<br>
  <br>
</div></blockquote>
I don't know what pexpect is/was capable of, since it's not apparently part of the current Python distributions.  I thought it had the ability to fork or spawn a child process, with pipes connected.<br>
<br>
Anyway, subprocess can launch a new process, with pipes optionally connected back to your code.  I don't think it can attach to an already-running process.<br>
<br>
There are things in pywin32 that might help (even for controlling GUI programs), but I suspect there'd be a big learning curve.  And of course it'd then be very Windows-dependent.<br>
<br>
pywin32 - <a href="http://python.net/crew/skippy/win32/Downloads.html" target="_blank">http://python.net/crew/skippy/win32/Downloads.html</a><br>
or get it as part of the ActiveState python distro.  <a href="http://www.activestate.com/activepython/" target="_blank">http://www.activestate.com/activepython/</a><br>
<br>
<br>
DaveA<div><div></div><div class="h5"><br>
<br>
-- <br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br><br>Thanks for the suggestions.  My script is already written and works great with PExpect as long as I run it in my cygwin environment.  My question I think is better suited to a cygwin list actually as I am hoping that I can simply move the appropriate .dll's up to the server without actually installing cygwin on the server.<br>
<br>Thanks.<br><br>