Run Linux Command Using python script. Get link Facebook X Pinterest Email Other Apps June 27, 2022 import subprocess command = "ps aux | grep python" p = subprocess.run(command, shell=True, capture_output=True) output = p.stdout.decode('utf-8') print(output) Read more