You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set run-command coomand on pane-exited hook, but this all does not work as I expect...
I wrote sample test.sh file
#!/bin/sh
SLEEP=10
P1=`tmux split-window -d -P -F '#{pane_id}' -h 'echo This is a PLACEHOLDER pane; while true ; do sleep 1 ; done'`
P2=`tmux new-window -P -d -n sleep-pane -F '#{pane_id}' "sleep $SLEEP"`
P3=`tmux set-hook -p -t $P2 pane-exited[0] 'run-shell -b "echo woke up > res "' 2>&1`
echo $P1 $P2 $P3 >panes.log
I expect woke up to be printed into res file as soon as sleep in P2 is over. But I am not getting it.
It works with -g option, but I'd prefer to have per-pane rules set...
I tried all ways I can imagine, but I still do not get what I need. I guess I am not doing something right, but I do not understand what is wrong with it...
The text was updated successfully, but these errors were encountered:
Hi I am using tumux 3.3a on Debain 12,
I am trying to set
run-command
coomand onpane-exited
hook, but this all does not work as I expect...I wrote sample
test.sh
fileI expect
woke up
to be printed intores
file as soon as sleep in P2 is over. But I am not getting it.It works with -g option, but I'd prefer to have per-pane rules set...
I tried all ways I can imagine, but I still do not get what I need. I guess I am not doing something right, but I do not understand what is wrong with it...
The text was updated successfully, but these errors were encountered: