From 58e2059668d615d0891928a236b40517ae93b0e4 Mon Sep 17 00:00:00 2001 From: sij Date: Tue, 8 Oct 2024 06:43:51 +0200 Subject: [PATCH] Delete all --- all | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 all diff --git a/all b/all deleted file mode 100755 index 0a84c7d..0000000 --- a/all +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Create a new tmux session -tmux new-session -d -s servers -n 'ssh' - -# Split the first window horizontally -tmux split-window -h - -# Split the first and second panes vertically -tmux select-pane -t 0 -tmux split-window -v - -tmux select-pane -t 2 -tmux split-window -v - -# Function to connect to servers with retry -connect_to_server_with_retry() { - tmux send-keys -t "$1" "while true; do ssh $2; sleep 30; done" C-m -} - -# Connect to servers with retry -connect_to_server_with_retry 0 "100.64.64.11" -connect_to_server_with_retry 1 "100.64.64.30" -connect_to_server_with_retry 2 "100.64.64.15" -connect_to_server_with_retry 3 "root@10.13.37.10" - -# Attach to the tmux session -tmux attach -t servers -