Re: [Pythonmac-SIG] Subprocess module hangs with select

2005-08-03 Thread Sriram Srinivasan
Thanks Bob, for the prompt response. I guessed as much. In any case, select over a pipe isn't portable to Windows, so I converted it to a threaded + blocking I/O. Simpler code and works well enough for my case (I won't end up spawning too many threads) --Sriram On Aug 4, 2005, at 6:41 AM,

Re: [Pythonmac-SIG] Subprocess module hangs with select

2005-08-03 Thread Bob Ippolito
On Aug 3, 2005, at 1:07 PM, Sriram Srinivasan wrote: > I wonder if anyone has seen this behavior or can explain it to me. > > I Popen a process and monitor its stdout using select, as follows. > > process = Popen(args,stdin=PIPE, stdout=PIPE, stderr=PIPE) > while True: > if not

[Pythonmac-SIG] Subprocess module hangs with select

2005-08-03 Thread Sriram Srinivasan
I wonder if anyone has seen this behavior or can explain it to me. I Popen a process and monitor its stdout using select, as follows. process = Popen(args,stdin=PIPE, stdout=PIPE, stderr=PIPE) while True: if not (process.returncode == None): print process.returncod

Re: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python?

2005-08-03 Thread Nicholas Riley
On Wed, Aug 03, 2005 at 03:21:53PM -0400, Schollnick, Benjamin wrote: > Folks, > > Anyone have any idea on how to get the Machine Name from the Sharing > Preference pane? > The only real solution that I have thought up is to find the plist and > read it from there

Re: [Pythonmac-SIG] Getting Sharing name of the Macintosh via Python?

2005-08-03 Thread Henning.Ramm
>Anyone have any idea on how to get the Machine Name from the Sharing >Preference pane? Is `hostname` what you look for? Best regards, Henning Hraban Ramm Südkurier Medienhaus / MediaPro Support/Admin/Development Dept. ___ Pythonmac-SIG maillist - Pyt

[Pythonmac-SIG] Getting Sharing name of the Macintosh via Python?

2005-08-03 Thread Schollnick, Benjamin
Folks, Anyone have any idea on how to get the Machine Name from the Sharing Preference pane? The only real solution that I have thought up is to find the plist and read it from there I could use Socket to get the TCPIP name, but in this case, that is a DHCP name, and wouldn't help me figure o