Skip to content

Instantly share code, notes, and snippets.

View svenXY's full-sized avatar

Sven Hergenhahn svenXY

  • Heidelberg, Germany
View GitHub Profile
@svenXY
svenXY / tmux-ssh
Last active December 12, 2018 03:57 — forked from bhenderson/tmux-ssh
Start multiple synchronized SSH connections with Tmux
#!/bin/sh
hosts=""
ssh_options=""
tmux_session_name="cssh"
usage() {
echo "Usage: $0 [options] host [host ...]" >&2
echo "" >&2
echo "Spawns multiple synchronized SSH sessions or windows inside a tmux session." >&2
#!/bin/bash
# forked from shepmaster/trace-images.sh
# added some logic and made it cron-able (as little output as possible)
hash jq 2>/dev/null || { echo >&2 "jq is required but was not found. Please run make sure it is in the path"; exit 1;}
shopt -s nullglob
# Reset all variables that might be set
interactive=0