how to change os.popen4 to subprocess
breamoreboy at yahoo.co.uk
Sat Oct 27 05:10:33 CEST 2012
On 27/10/2012 03:28, skyworld wrote:
> I'm new to python and I'm trying to porting some scripts from v0.96 to
> v2.0.1. A piece of code is like this:
What software are you talking about here, it's certainly not Python
versions as the most up to date are 2.7.3 and 3.3.0?
> cmd_h = os.popen4(env['SYSCMDLINE'])
> the system indicates the popen4 is deprecated and suggest to use
> subprocess. Can anybody tell me how to use subprocess in this case?
> and what does "" here means?
If you don't know what the  means you've got problems :) I suggest
you read the tutorial here first
http://docs.python.org/tutorial/index.html then the subprocess module
More information about the Python-list