[PY]Python Auslese func

11/20/2012 20:27 .XXShuzZzle#1
Also folgendes Problem ich möchte meinen taskmanger auslesen UND dabei nach task suchen.
PHP Code:
import os
    hacks 
= ['notepad++.exe''haddelanpeterpan.exe']
        
os.popen('tasklist').read()
            if 
t.find(hacks[0]) == TRUE:
                        print(
"evil is inside"
Was muss ich machen? Importet hab ich natürlich das auslesen geht auch nur das find nicht
11/21/2012 15:52 nephren#2
schreib das TRUE als True =)

Code:
import os 
hacks = ['notepad++.exe', 'haddelanpeterpan.exe'] 
t = os.popen('tasklist').read() 
if t.find(hacks[0]) == True:
 print("evil is inside")