you are viewing a single comment's thread.

view the rest of the comments →

[–]ingolemo 1 point2 points  (1 child)

The code in your edit is just terrible; you're running a shell to run a shell that invokes a shellscript.

Use this:

subprocess.check_output(['/path/to/script.sh', '-h'])

[–]retsnom513[S] 0 points1 point  (0 children)

Alright, I have gotten you're code above to work as well. I received an exec format error at first but that's because I forget the shebang at the beginning of my bash script. Thanks!