Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

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  |  QR code  |  clone
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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
clone this paste RAW Paste Data