Skip to content

Instantly share code, notes, and snippets.

View fracance's full-sized avatar

Francesco Cancelliere fracance

View GitHub Profile
#!/bin/bash
# Close existing session if it exists
SESSION_NAME="tmux_ros"
tmux kill-session -t $SESSION_NAME 2>/dev/null
# Function to wait for SSH connection
wait_for_ssh() {
local host=$1
local user=$2