
Simple Screen Script
By: a guest on
Oct 24th, 2012 | syntax:
Bash | size: 0.39 KB | hits: 43 | expires: Never
#!/bin/bash
# This is a simple script that uses screen to open multiple windows and ssh into predetermined devices.
# Replace "SCREENNAME" with your desired name. Additionally replace the HOST* with the device you want
# to ssh into.
screen -dmS "SCREENNAME"
screen -S "SCREENNAME" -X screen ssh HOST1
screen -S "SCREENNAME" -X screen ssh HOST2
screen -S "SCREENNAME" -X screen ssh HOST3