daily pastebin goal

Simple Screen Script

a guest Oct 24th, 2012 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data