I've used subprocess for this.

import subprocess

myCmd = "ping -n 5 8.8.8.8"

# Wait
subprocess.Popen( myCmd, shell=False, bufsize=4096 ).wait()

# No wait
subprocess.Popen( myCmd, shell=False, bufsize=4096 )

On Tuesday, September 1, 2015, Todd Widup <[email protected]> wrote:

> I have several functions that run on the system from within Maya..creating
> directories, checking things in and out of our source control system,etc
>
> I know I read this someplace but I cant recall how to do it..how can I run
> those functions from within Maya, but not lock Maya up during that time.
>
> thanks
> -todd
>
> --
> Todd Widup
> Creature TD / Technical Artist
> [email protected] <javascript:_e(%7B%7D,'cvml','[email protected]');>
> [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>
> www.toddwidup.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','python_inside_maya%[email protected]');>
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CABBPk35MGR64r2sOEDXAdFh-oCwYBV2frAHo89VX%3DiJZFPJcfA%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk35MGR64r2sOEDXAdFh-oCwYBV2frAHo89VX%3DiJZFPJcfA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CA%2Bhu4MxwtRUkQ982gJ%3Dk-D%3D-h96FTHaNt76BMeyycwy3Fdvq2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to