Monitoring external processes
Hi, Is there a way to track external processes launched by python on the Mac? I am using subprocess module to launch the process. Thanks Sunil -- http://mail.python.org/mailman/listinfo/python-list
Re: Monitoring external processes
On Oct 22, 11:33 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Oct 23, 3:09 pm, [EMAIL PROTECTED] wrote: > > > Hi, > > > Is there a way to track external processes launched by python on the > > Mac? I am using subprocess module to launch the process. > > > Thanks > > Sunil > > If using Python 2.3/2.4, you can use os.wait(). > > If using Python 2.5, there is also have os.wait3() and os.wait4(). > > See the operating system manual pages for the difference. Ie., > > man wait4 > > Graham Ah! Exactly what I needed. Thanks Sunil. -- http://mail.python.org/mailman/listinfo/python-list
Re: Monitoring external processes
On Oct 22, 11:33 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Oct 23, 3:09 pm, [EMAIL PROTECTED] wrote: > > > Hi, > > > Is there a way to track external processes launched by python on the > > Mac? I am using subprocess module to launch the process. > > > Thanks > > Sunil > > If using Python 2.3/2.4, you can use os.wait(). > > If using Python 2.5, there is also have os.wait3() and os.wait4(). > > See the operating system manual pages for the difference. Ie., > > man wait4 > > Graham I'm having a slight problem using wait3 or wait4. I want monitor a launched process and get its resource usage information. When I call os.wait4 with the pid the first time the call returns successfully but the second time around I get a OSError with "No child processes" error. I have tried using WCONTINUED, WNOHANG and WUNTRACED options. Sunil. -- http://mail.python.org/mailman/listinfo/python-list
Programmatically changing network proxy settings on the Mac
Hi, Anybody have suggestions of how network proxy settings can be changed programmatically on the Mac, Tiger and Leopard. Are there any helpful python api's that can be used. Thanks Sunil -- http://mail.python.org/mailman/listinfo/python-list
Python packages on the Mac
Hi, I would like to copy the contents of the PythonFramework.pkg folder and run python without having to run the installer on the Mac. On windows it's simple to copy the contents of the python folder and the python dll's. How can this be done on the Mac? Thanks Sunil -- http://mail.python.org/mailman/listinfo/python-list
Re: Python packages on the Mac
On Aug 5, 5:33 am, Jeff <[EMAIL PROTECTED]> wrote: > On Aug 4, 11:20 pm, [EMAIL PROTECTED] wrote: > > > Hi, > > > I would like to copy the contents of the PythonFramework.pkg folder > > and run python without having to run the installer on the Mac. On > > windows it's simple to copy the contents of the python folder and the > > python dll's. How can this be done on the Mac? > > > Thanks > > Sunil > > Are you trying to make a script for easy distribution without having > to first install Python? Look here:http://undefined.org/python/py2app.html This is cool. Will this work with Python 2.5.2? Sunil -- http://mail.python.org/mailman/listinfo/python-list
Re: Python packages on the Mac
On Aug 5, 5:33 am, Jeff <[EMAIL PROTECTED]> wrote: > On Aug 4, 11:20 pm, [EMAIL PROTECTED] wrote: > > > Hi, > > > I would like to copy the contents of the PythonFramework.pkg folder > > and run python without having to run the installer on the Mac. On > > windows it's simple to copy the contents of the python folder and the > > python dll's. How can this be done on the Mac? > > > Thanks > > Sunil > > Are you trying to make a script for easy distribution without having > to first install Python? Look here:http://undefined.org/python/py2app.html In this case, I do not want to make a distribution package. On windows I am able to copy the contents of Python25 and a few pydll's to the same directory and run python on a machine which doesn't have python installed. Mac doing the same doesn't work. This allows me to distribute various scripts for different purposes to be executed by the user within my group. Sunil -- http://mail.python.org/mailman/listinfo/python-list