[Python-de] DBUS + KDE + Konsole

Hartmut Goebel h.goebel at goebel-consult.de
Di Okt 25 22:06:02 CEST 2011


Am 25.10.2011 21:57, schrieb Raymond Czerny:
> --- code fragment -------------
> os.system('konsole')
> proc = subprocess.Popen(['pidof', '-s', 'konsole'], stdout=sp.PIPE)
> proc.wait()
> return int(proc.stdout.readline())
> -------------------------------

Weshalb startet Du die konsole nicht mit subprocess.Popen()? Dann 
bekommst kannst Du die PID im erzeugten Popen-Objekt abfragen.

-- 
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de



Mehr Informationen über die Mailingliste python-de