Like Justin asked, after you send the Popen.kill() can you see the process
still running?
Also did you try running mayapy instead of maya? I'm not sure what you're
trying to do,
but mayapy could process what ever you need and then quit, so you won't
need to "kill" it. maybe that can work for you?
On Thursday, 16 October 2014 18:06:55 UTC-7, ynedelin wrote:
>
> hey guys,
> here is the code
>
> a = subprocess.Popen("maya", stdout=subprocess.PIPE,
> stdin=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
> a.kill()
>
> it does not work.
>
> I need to start second Maya instance and then shut it down from first Maya
> instance
>
> Second Maya starts fine but then Popen.kill() does not work. What am I
> missing?
>
> Thanks
> Yury
>
>
--
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/a226f1e0-768d-412a-bcaf-3409f868da03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.