Scripted detached session tmux
Spawn background session and inject a command; survives SSH disconnect
tmux new-session -d -s work && tmux send-keys -t work 'tail -f /var/log/app.log' Enter
more tmux
all 17 commands →
Spawn background session and inject a command; survives SSH disconnect
tmux new-session -d -s work && tmux send-keys -t work 'tail -f /var/log/app.log' Enter