Created
April 29, 2021 08:26
-
-
Save gustavorv86/ae23300cb2b24ec81e0785194f5c8947 to your computer and use it in GitHub Desktop.
Execute a BASH shell on EXOS Extreme Switches (aka ExtremeXOS)
This file contains hidden or 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 python | |
# | |
# On EXOS shell create exos-bash.py. | |
# | |
# EXOS> edit script exos-bash.py | |
# | |
# Copy this entire content to exos-bash.py file. | |
# | |
################################## | |
import os | |
if __name__ == "__main__": | |
os.system("/bin/bash") | |
exit(0) | |
################################## | |
# | |
# On EXOS shell, execute the script. | |
# | |
# EXOS> run script exos-bash.py | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment