[IronPython] os.system equivalent

Patrik Husfloen husfloen at gmail.com
Fri Oct 13 19:27:29 CEST 2006


On 10/13/06, Kevien Lee <ironpythonster at gmail.com> wrote:
> use the System.Diagnostics.Process.Start() is easy,but some
> command it don't support,such as "telnet 127.0.0.1".as shell develop,calling
>  the system command should be more easy:(

Yes it does, via this overload:
public static Process Start (
    string fileName,
    string arguments
)

/Patrik

>
>
> > 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
> >
> -----------------------------------------------------------------------------
> > Hi,I also amaze this problem,how could the IronPyton to call the python
> > lib.If the IronPython can call the python lib full,it should be perfect!
> >
>
> ---------------------------------------------------------------
>
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>



More information about the Ironpython-users mailing list