Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.