Skip to content

Instantly share code, notes, and snippets.

@gpr
Created April 27, 2018 11:37
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 gpr/a0c87483ca622e40bb408a08bc05585c to your computer and use it in GitHub Desktop.
Save gpr/a0c87483ca622e40bb408a08bc05585c to your computer and use it in GitHub Desktop.
If you need to perform some action with python before executing another program
#!/usr/bin/env python3
import os
os.execvp("bash", ["-l"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment