Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Bash 如何通过UDP传输tmux管道窗格_Bash_Tmux_Netcat_Tee - Fatal编程技术网

Bash 如何通过UDP传输tmux管道窗格

Bash 如何通过UDP传输tmux管道窗格,bash,tmux,netcat,tee,Bash,Tmux,Netcat,Tee,我试图同时将来自tmux窗格的输出保存到文件中,并使用netcat对其进行流式处理 工作原理: tmux pipe-pane -o -t "server" "tee -a '/home/csgoserverp/test.txt'" echo -n "Hello World" | tee -a '/home/me/text.txt' | nc -4u -w1 0.0.0.0 9999 什么不起作用: tmux pipe-pane -o -t "server" "nc -4u -w1 0.0.0.

我试图同时将来自tmux窗格的输出保存到文件中,并使用netcat对其进行流式处理

工作原理:

tmux pipe-pane -o -t "server" "tee -a '/home/csgoserverp/test.txt'"
echo -n "Hello World" | tee -a '/home/me/text.txt' | nc -4u -w1 0.0.0.0 9999
什么不起作用:

tmux pipe-pane -o -t "server" "nc -4u -w1 0.0.0.0 9999"
tmux pipe-pane -o -t "server" "tee -a '/home/me/test.txt' | nc -4u -w1 0.0.0.0 9999"

任何帮助都将不胜感激。

我在某个地方读到,ncat比netcat好,出于未知的原因,使用ncat工作:

tmux pipe-pane -t "server" "tee -a '/home/csgoserverp/test.txt' | ncat -4u -w1 0.0.0.0 9999"