ONE solution to a terminal on a serial port

ONE solution to a terminal on a serial port

Post by Christopher Prest » Fri, 06 May 1994 16:49:47



This is how I managed to get my terminal that is connected via
a serial port to work. It isn't an 'orthodox' method, but it works.

In /etc/inittab make sure all the lines that refer to the 'hard-wired'
terminals' such as
#c7:456:respawn:/etc/getty 9600 ttyS0

are, like the above, commented out.

Next, create a file with the following form:

#!/bin/sh
# assuming bash or pdksh

while true
do
        agetty -L -i 9600 $1
done

#end file here.

Call this file something appropriate and chmod to say 700.
I call it 'term_run' and it resides in /root

Then, insert the following  into /etc/rc.local :
if [ -x /root/term_run ]
then
        /root/term_run ttyS0 &
# replace ttyS0 as appropriate
fi

I have found that this works for me, and I hope that may help someone
else out there.. 8)

Good luck
chris

 
 
 

1. Send traffic from one serial port out to another serial port

Hi,

We've got a system where we need to occasionally in effect link two
serial ports together on our system which is running linux.

Scenario

 (/dev/ttyS1)    <radio> --- rs232 -- [linux system] --- rs232 --
<terminal> (/dev/ttyS0)

Normally the terminal talks to the linux system which sends traffic if
needed to the radio. However for certain situations we need to make
sure any traffic on /dev/ttyS0 is sent straight out on /dev/ttyS1 and
vice-versa with no alterations etc.

On a stock distribution (debian) I can't see an easy way to accomplish
this short of using socat.

Anyone got any ideas?

2. SSL Dependencies for Wget

3. Solution to serial-terminal problem...

4. question about ethernet.

5. serial port on v490 and Serial port on StorEdge 3510

6. How popular is U6000 - SVR4?

7. Serial port to serial port copying software

8. Solaris 2.6: '-s' as hostname?

9. SOLUTION: Personal LaserWriter NT on serial port

10. Solution to serial ports no found on Iwill motherboard

11. Serial Port and External Modem, Looking for Solution!

12. Serial port to serial port with null modem cable

13. Serial port - to - serial port networking