Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Ernesto Lorenz on November 27, 2003, 04:29:31 PM
-
Hi to al,
I have a need to open a TCP port (say 7120) on the internal network of my SME 5.6 server and bridge this to the ttyS0 port for remote controll of my ADSL modem connected to the serial COM1.
Does anyone know how to acomplish this?
Regards,
Ernesto
-
Not sure what you could use to do that, there might be a software package out there somewhere.
you can always ssh onto the sme box and use minicom.
-
I don't imagine it would be very difficult, you just need to open a socket to listen/interact on and then open a file pointer/handler to /dev/ttyS0, piping keyboard input to /dev/ttyS0 and returns from /dev/ttyS0 to the socket.
You could probably do something like this in Perl fairly quickly.
I've done something in the past before with PHP and a web interface, but interaction wasn't real time obviously. It was more or less a "Issue command, see response" type deal.