bash - Preserving 'ls' output format over network -



bash - Preserving 'ls' output format over network -

i have 2 machines , b.

i wish have output b printed in terminal on a.

i run next in loop on a:

nc -l -p 65000

on b, output tee'd /dev/tcp/a/65000

this works of time, output programs such 'ls' lose colour , tab formatting. there way work, such writing straight tty on a? how this?

thanks.

you need utilize unbuffer fool programme thinking it's connected tty.

bash scripting networking

Comments