I know I do not need root privileges to execute this.ĮDIT after answers from jadkik94 and fest I've read a lot the documentation of subprocess module, in particular, subprocess.Popen.īeing pratical: why this code does not work with argument? It outputs nothing… Still, I cannot figure out how to accomplish this. But it is essential that it unlocks after that line so I can perform other tasks completely unrelated with the background program. There is no problem if this program blocks my code until reach this line. The info from the background program that I need is located, precisely, in the second line of its output. But the background program must keep executing. I need to execute some program in background, wait for output and manipulate it. I already know there is several questions targeting this theme, but none of them solved my specific problem.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |