

Simple Screen Script

By: a guest on Oct 24th, 2012  |  syntax: Bash  |  size: 0.39 KB  |  views: 47  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
  1. #!/bin/bash
  2. # This is a simple script that uses screen to open multiple windows and ssh into predetermined devices.
  3. # Replace "SCREENNAME" with your desired name. Additionally replace the HOST* with the device you want
  4. # to ssh into.
  5. screen -dmS "SCREENNAME"
  6. screen -S "SCREENNAME" -X screen ssh HOST1
  7. screen -S "SCREENNAME" -X screen ssh HOST2
  8. screen -S "SCREENNAME" -X screen ssh HOST3