Forum: Mikrocontroller und Digitale Elektronik Linux, Raspberry: Welches Programm wird ausgeführt?


von Bertel (Gast)


Lesenswert?

Angenommen es werden einige Python-Programme gestartet.

Beispiel:
1
python3 LaCrosseI2C.py &


Mit dem Shell-Kommando ps kann ich sie mir ansehen und gegebenenfalls 
mit kill die Ausführung beenden.

Gibt es ein Shell-Kommando um festzustellen welches Programm von python3 
ausgeführt wird? "ps" zeigt nur python3 an.
1
 1604 pts/0    00:00:00 bash
2
 1622 pts/0    00:00:03 python3
3
 1623 pts/0    00:00:00 python3
4
 1687 pts/0    00:00:00 ps

von Narfie (Gast)


Lesenswert?

Versuche mal "ps -a".

von Rolf M. (rmagnus)


Lesenswert?

1
ps -f
Findet man übrigens in der man-Page.

von Bertel (Gast)


Lesenswert?

Danke für eure Hinweise :)
1
ps -f
2
3
UID        PID  PPID  C STIME TTY          TIME CMD
4
pi        1604  1601  0 03:08 pts/0    00:00:01 -bash
5
pi        1622  1604  0 03:08 pts/0    00:00:04 python3 webserver_cgi.py
6
pi        1623  1604  0 03:09 pts/0    00:00:00 python3 LaCrosseI2C.py
7
pi        1805  1604  0 03:49 pts/0    00:00:00 ps -f

von Marek N. (Gast)


Lesenswert?


Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.