Created
March 27, 2019 21:15
-
-
Save cupdike/df293d336eae414871a5f8b5a27d8976 to your computer and use it in GitHub Desktop.
sh.ErrorReturnCode_255 using Python sh package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you are trying to run a script like this | |
import sh | |
myScriptCommand = sh.Command("/path/to/script") | |
myScriptCommand("my arg") | |
and you see this error: | |
sh.ErrorReturnCode_255 | |
Try adding a shebang to the top of your script: | |
e.g: | |
#! /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment