skip to Main Content

subprocess.check_output() : bash command not found when setting parm executable='/bin/bash' – CentOS

I'm running Python 3.6 on an Centos box. Here's my non-working code shell_command = subprocess.check_output(["ll"],shell=True, universal_newlines=True, executable='/bin/bash') Here's the output: /bin/bash: ll: command not found Traceback (most recent call last): File "./snmp_test.py", line 17, in <module> shell_command = subprocess.check_output(["ll"],shell=True, universal_newlines=True,…

VIEW QUESTION
Back To Top
Search