Created
October 25, 2017 14:22
-
-
Save ten0s/3d5bb10be78a9cf47b869fc3ff1713b1 to your computer and use it in GitHub Desktop.
Open automatically multiple xfce terminal tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for h in 192.168.100.1 192.168.100.2 192.168.100.3; do | |
opts[k++]="--tab" | |
opts[k++]="--title=$h" | |
opts[k++]="--command=bash -c 'ssh $h 'hostname'; exec bash'" | |
done | |
unset "opts[0]" # don't create an empty tab | |
xfce4-terminal "${opts[@]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment