I am using the busybox microcom program to communicate between 2 jsLinux instances via websocket. Everything is going fine, and using microcom I am able to chat between the images.
However, I would like to also have what I typed echoed back to me, instead of only what the other person types shown. I tried something like tail -f | microcom /dev/ttyS1
however this did not work.
The command I am using to connect the 2 instances (via emulated serial port) is:
microcom /dev/ttyS1
Here is the busybox microcom documentation:
microcom [-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY
Copy bytes for stdin to TTY and from TTY to stdout
Options:
-d Wait up to DELAY ms for TTY output before sending every
next byte to it
-t Exit if both stdin and TTY are silent for TIMEOUT ms
-s Set serial line to SPEED
-X Disable special meaning of NUL and Ctrl-X from stdin
Thanks.
try this:
that would print everything to
/dev/stderr(usually a symlink to/proc/self/fd/2) and pipe it into the standard input of microcom (or use a file instead of stderr…)