Posts

Showing posts from June, 2022

Run Linux Command Using python script.

import subprocess         command = "ps aux | grep python" p = subprocess.run(command, shell=True, capture_output=True) output = p.stdout.decode('utf-8') print(output)