Kodi Community Forum
[WINDOWS] Subprocess issue - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: [WINDOWS] Subprocess issue (/showthread.php?tid=72131)



[WINDOWS] Subprocess issue - phantomfr - 2010-04-14

Hello !

i've a problem with the subprocess function.
I try to open a child process under windows with the subprocess function (there is no fork() on windows) like this :

Code:
ping = subprocess.Popen(["ping", "192.168.0.253"], stdout=subprocess.PIPE)
out = ping.stdout.read()

print out

But i haven't any line and no function is working after calling the subprocess function (under linux my code works with fork() and subprocess() )
Have you an idea ? Maybe using thread under windows ?

Thanks.