[英]How do I pipe output from a continuous stream on a remote SSH server into local program
I have a remote SSH Linux host producing a continuous stream of ADC data which I would like to analyze in real time on my local Linux host.我有一个远程 SSH Linux 主机,它产生连续的 ADC 数据流,我想在本地 Linux 主机上实时分析这些数据。 How do I best pipe the data into the program on my local host?如何最好地将数据通过管道传输到本地主机上的程序中? Thanks in advance for any tip.提前感谢您的任何提示。 H H
If I do for instance seq 1 1200000 |如果我做例如 seq 1 1200000 | ssh 192.168.1.4 myprogram ssh 192.168.1.4 我的程序
on the remote I get the data from seq into myprogram but this requires me to open a ssh terminal into the remote.在遥控器上,我将数据从 seq 获取到 myprogram 中,但这需要我打开一个 ssh 终端进入遥控器。 Now现在
ssh root@192.168.1.106 "seq 1 1200000 | ssh 192.168.1.4 myprogram" works, but for some reason it becomes much slower. ssh root@192.168.1.106 "seq 1 1200000 | ssh 192.168.1.4 myprogram" 有效,但由于某种原因它变得慢得多。 What is the best way?什么是最好的方法? H H
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.