Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a device with two serial ports which I connected together, and I SSH into it. I would like to send data via one of the serial ports and read it from the other, to see that they do transmit/receive data.

I read on the topic but I'm confused about the various choice of programs that work with tty, and I don't know how to manage this process given that when I invoke one of these programs I either resign control to it, thus losing the ability to do other things besides using the port, or I get no control over it if I attempt to run it in the background.

How do I achieve my goal?

share|improve this question
up vote 3 down vote accepted

You could open an additional session with ssh and issue the following command in it:

tail -f /dev/ttyS0

it will print out everything that arrives at ttyS0. Of course, this solution is useful if you transmit printable characters only as otherwise your screen may be flooded with garbage.

share|improve this answer
I'd have used minicom myself. – symcbean Feb 21 '13 at 13:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.