Installing socat on Mac OS X
In another article I showed how to create a twisted pair of virtual serial port on Linux using socat, the same thing can be done on Mac OS X, but socat must be installed using the source code, so you need to have the developer tools installed
Download the source code from here (http://www.dest-unreach.org/socat/), I downloaded version socat-2.0.0-b5
open a terminal ad cd into the directory where you have downloaded the source code
Issue, again, the make command:
This time the make should go well…
now on a terminal window run socat
The output should look like the following one:
Now you have two "serial" ports connected back to back, open a new terminal and issue the following command
open a new terminal and issue the following command
On the first terminal you should see the string "Hello World".
That's all, nothing more.