All translations
Enter a message name below to show all available translations.
Found one translation.
Name | Current message text |
---|---|
h German (de) | while True: found = False time.sleep(5) pids = [pid for pid in os.listdir('/proc') if pid.isdigit()] for pid in pids: try: cmd = open(os.path.join('/proc', pid, 'cmdline'), 'rb').read() if "gimx" in cmd: found = True except IOError: # proc has already terminated continue if found == True: GPIO.output(led, True) else: GPIO.output(led, False) </pre> |