Skip to content

Instantly share code, notes, and snippets.

@ten0s
Created October 25, 2017 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ten0s/3d5bb10be78a9cf47b869fc3ff1713b1 to your computer and use it in GitHub Desktop.
Save ten0s/3d5bb10be78a9cf47b869fc3ff1713b1 to your computer and use it in GitHub Desktop.
Open automatically multiple xfce terminal tabs
#!/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