File tree Expand file tree Collapse file tree 2 files changed +34
-6
lines changed
Expand file tree Collapse file tree 2 files changed +34
-6
lines changed Original file line number Diff line number Diff line change 1- <source>
2- @type named_pipe
3- path /tmp/tmux_fluentbit .fifo
4- tag tmux
5- format none
6- </source>
1+ # <source>
2+ # @type named_pipe
3+ # path /tmp/tmux_fluentd .fifo
4+ # tag tmux
5+ # format none
6+ # </source>
77
88<match **>
99 @type rawtcp
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ . ${KAPITAN_COMPILED} /bash/mindwm.sh
4+
5+ NODE_ID=" $1 "
6+ TMUX_SESSION=" Freeplane-Node-${NODE_ID} "
7+
8+ TMUX_LOGFILE=" ${MINDWM_TMP} /"
9+
10+ test -d mkdir -p
11+
12+ rm ${TMUX_LOGFILE}
13+ mkfifo ${TMUX_LOGFILE}
14+ mkfifo " /tmp/freeplane-${NODE_ID} .fifo"
15+
16+ tmux has-session -t ${TMUX_SESSION} || (
17+ tmux new -s ${TMUX_SESSION} -d ' bash'
18+ # tmux pipe-pane -t ${TMUX_SESSION} "stdbuf -o0 sed -r 's/\x1b\[([0-9]{1,2}(;[0-9]{1,2})?)?m//g;' > ${TMUX_LOGFILE}"
19+ tmux new-window -t ${TMUX_SESSION} :1 -n shell
20+ tmux send-keys -t ${TMUX_SESSION} :0 " export PS1='\u@\h:\w\$ '" ENTER
21+ tmux send-keys -t ${TMUX_SESSION} :1 " export PS1='\u@\h:\w\$ '" ENTER
22+ # tmux send-keys -t ${TMUX_SESSION}:0 "/home/bebebeko/mindwm/compiled/mindwm//shell/tmux_fifo.groovy ${NODE_ID}" ENTER
23+ tmux pipe-pane -IO -t ${TMUX_SESSION} :1 " cat > ${TMUX_LOGFILE} "
24+ # tmux pipe-pane -I -t ${TMUX_SESSION} "cat > ${TMUX_LOGFILE}-stdout"
25+ sleep 5
26+ )
27+
28+ tmux attach -t ${TMUX_SESSION}
You can’t perform that action at this time.
0 commit comments