Created
April 27, 2018 11:37
-
-
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
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
#!/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