Hi, With the script below : povray $@ & echo $! > $(kdeconfig --path tmp)/povray.pid I can get povray pid With the script below : kstart povray $@ & echo $! > $(kdeconfig --path tmp)/povray.pid I can get kstart pid, not povray pid (and that is what I want) Cheers, Fabien
Sorry, but I do not understand ( back from work, dumbness overwhelms me)... What do you suggest ? Sure, I can use a script that writes the child PID into a pipe, but I just do not know how to retrieve it. with this command... f=popen2.Popen4('kstart --ontop povray +itest.pov',1) kstart spawns a child, but I cannot get the PID of its child. If you have even a tiny script, please enclose it. Thanks for enduring this. Fabien
with the python script below : f=popen2.Popen4('kstart --ontop povray +itest.pov',1) az=f.pid az returns the PID number of kstart, not the PID NUMBER of povray whereas with f=popen2.Popen4('povray +itest.pov',1) az=f.pid az returns the PID number of povray. I need to know the PID number to check whether the render is still running and to read the output stream. Thanks
Yes but how do you get the PID number of the app launched by kstart ?
Hi . I am writing an editor for Linux for the POV-RAY raytracer (with wxpython GUI). When the user clicks on render I use 'kstart --ontop povray ...' to launch the render on top. The problem is that I need to know the PID of povray to read the output. I get the PID of kstart ( that dies when povray is started ), but I do not get the child PID. Does anyone have an idea ? Thanks