Advertisement
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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement