how to change os.popen4 to subprocess
skyworld
chenyong20000 at gmail.com
Fri Oct 26 22:28:39 EDT 2012
More information about the Python-list mailing list
Fri Oct 26 22:28:39 EDT 2012
- Previous message (by thread): [ANN] pypiserver 1.0.0 - minimal private pypi server
- Next message (by thread): how to change os.popen4 to subprocess
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, 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: cmd_h = os.popen4(env['SYSCMDLINE'])[1] 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 "[1]" here means? thanks.
- Previous message (by thread): [ANN] pypiserver 1.0.0 - minimal private pypi server
- Next message (by thread): how to change os.popen4 to subprocess
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list