KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there a way to run the BASH built-in commands from Python? I tried: subprocess.Popen(['bash','history'],shell=True, stdout=PIPE) subprocess.Popen('history', shell=True, executable = "/bin/bash", stdout=subprocess.PIPE) os.system('history') and many variations thereof. I would like to run history or fc -ln .
Tags (comma-separated)
Save Edits
Cancel