Skip to content

Instantly share code, notes, and snippets.

@cupdike
Created March 27, 2019 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cupdike/df293d336eae414871a5f8b5a27d8976 to your computer and use it in GitHub Desktop.
Save cupdike/df293d336eae414871a5f8b5a27d8976 to your computer and use it in GitHub Desktop.
sh.ErrorReturnCode_255 using Python sh package
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