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:
- log stdout , stderr file on local machine.
- 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
Post a Comment