linux - How to send three pipes of data over ssh? -


i have bash script on remote host produces large amount of data on fd=3 possibly interesting data on stdout , stderr. want to:

  1. log stdout , stderr file on local machine.
  2. write data on fd=3 stdout on local machine.

here's how done if big script local:

 exec 3> >(cat) ./big_script.sh -o /dev/fd/3 2>&1 >big_script.log exec 3>&- 

however, want run big_script.sh on remote machine , have 3 pipes (fd=1, fd=2, , fd=3) come out of ssh program separate. best way that?

nc (netcat) , tunnels ? can make kinda log radio on net way!


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -