¿Ejecutar comandos integrados de BASH en Python?
¿Hay alguna manera de ejecutar los comandos integrados de BASH desde Python?
Lo intenté
subprocess.Popen(['bash','history'],shell=True, stdout=PIPE)
subprocess.Popen('history', shell=True, executable = "/bin/bash", stdout=subprocess.PIPE)
os.system('history')
y muchas variaciones de los mismos. Me gustaría correrhistory
ofc -ln
.