a guest Jun 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import subprocess
- with open("output.txt", 'w') as fout:
- subprocess.run(["python", "-m", "pip", "freeze"], stdout=fout, encoding="utf-8")
- $ ps -a | sort
RAW Paste Data