From 35c06a1739a684de7e35ae3465a79bcb71185655 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 25 Nov 2023 22:33:46 +0100 Subject: [PATCH] chore: added sources --- knowledge base/tmux.placeholder | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/knowledge base/tmux.placeholder b/knowledge base/tmux.placeholder index 577d5c8..c82e42b 100644 --- a/knowledge base/tmux.placeholder +++ b/knowledge base/tmux.placeholder @@ -1 +1,11 @@ https://github.com/tmux/tmux/wiki/ + +```sh +# Operate on a background session from another one. +tmux new-session -d -S 'session-name' +tmux send-keys -t 'session-name': "command" "Enter" +tmux capture-pane -t 'session-name': -S - -E - -p | cat -n +tmux kill-session -t 'session-name' +``` +https://superuser.com/questions/585398/sending-simulated-keystrokes-in-bash#1606615 +https://unix.stackexchange.com/questions/409861/is-it-possible-to-send-input-to-a-tmux-session-without-connecting-to-it#409863