[IronPython] os.system equivalent
Reed L. O'Brien
reed at intersiege.com
Tue Sep 26 01:06:21 CEST 2006
Dino Viehland wrote:
> The best replacement is probably nt.spawnl - it looks like this has been reported in the issue tracker over the weekend, and someone else has commented that it should be high-priority. So with 3 reports all at once I've gone ahead and moved this to high priority. Thanks for the bug report!
>
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Erich Lin
> Sent: Sunday, September 24, 2006 9:26 PM
> To: users at lists.ironpython.com
> Subject: [IronPython] os.system equivalent
>
> Hi,
>
> I am trying to run a shell command, specifically msbuild, and pstools.
> nt.system and os.system run on python, but neither of those run on ironpython. How would you do this using IronPython.
>
> Thanks
>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
I don't know how much weight it carries but the CPython subprocess
module is to replace the older ways.
from the subprocess docs:
"""
This module intends to replace several other, older modules and
functions, such as:
os.system
os.spawn*
os.popen*
popen2.*
commands.*
"""
More information about the Ironpython-users
mailing list