Skip to content

Instantly share code, notes, and snippets.

@gustavorv86
Created April 29, 2021 08:26
Show Gist options
  • Save gustavorv86/ae23300cb2b24ec81e0785194f5c8947 to your computer and use it in GitHub Desktop.
Save gustavorv86/ae23300cb2b24ec81e0785194f5c8947 to your computer and use it in GitHub Desktop.
Execute a BASH shell on EXOS Extreme Switches (aka ExtremeXOS)
#!/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