使用Raspberry Pi和Python3,我得到了以下子过程:
ps -aux | grep python3
pi 4168 0.9 0.7 11088 7304 ? S 18:31 0:00 python3 blue.py
pi 4175 1.2 0.7 11088 7300 ? S 18:33 0:00 python3 blue.py
pi 4185 2.4 0.7 11092 7300 ? S 18:35 0:00 python3 blue.py
pi 4195 6.5 0.7 11088 7300 ? S 18:38 0:00 python3 green.py
我需要杀死所有 python3 blue.py (从Python )并获取...
ps -aux | grep python3
pi 4195 6.5 0.7 11088 7300 ? S 18:38 0:00 python3 green.py