Article View: comp.os.linux.misc
Article #536Re: Telnet to Serial interface
From: Brian Miller
Date: Fri, 12 Sep 1997 00:00
Date: Fri, 12 Sep 1997 00:00
51 lines
2705 bytes
2705 bytes
Zebee Johnstone wrote: > > On Thu, 11 Sep 1997 19:44:46 +1000, Andrew Pollock <apollock@bit.net.au> wrote: > >Hi, > > > >We'd like to be able to telnet to our PABX, which has the option of having a > >serial cable connected to it. We want to be able to connect a Linux box to > >it via a serial cable and telnet to the Linux box and connect to the PABX > >via the serial connection. > > > > Seems simple to me. discover what parameters the > PABX xwants - probably something like 9600 speed, N, 8, 1. > I'd also delete all the modem setup and reset strings. > > connect the linux box to the PABX, and use minicom set to the > right port and speed and so on and see if you > can talk to the PABX. > > Once you have the linux box chatting to the the phone, you are > set. Plug your linux box xinto whatever network you have that > you are telnetting via, telnet to the linux boxx, and run > minicom from your telnet session. > > minicom comes with the redhat distribution. > Zebee Basically what I was thinking, but you could put minicom into either /etc/passwd for a special 'pabx' user-id, (instead of /bin/*sh). Or at least have it run automatically from the .login or .profile script for that "pabx" user-id if it started up one of the more common bin/*sh programs. The second way is probably better because the /bin/*sh would first work out the terminal type & size of the inbound telnet session. i.e. vt100, vt220, xterm, 24x80, etc. To call minicom, I'd use an 'exec /path/to/minicom' as this will cause the 'minicom' process to replace the /bin/*sh process, and the user exits minicom, there will be no shell to return to for hacking. Brian -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Brian Miller Telstra CDN Product Group 30/242 Exhibition Street ITG Communication Network Platforms Melbourne, VIC 3000 bmiller@telstra.com.au Australia Tel: +61-3-9632-3883 FAX: +61-3-9632-3884 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<34187232.3DE3@telstra.com.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<5v8ei9$irh$1@hermes.bit.net.au> <slrn61fgtd.9o6.zebee@zipper.zip.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1103af,d8832ef4b05df945 X-Google-Attributes: gid1103af,public X-Google-Thread: 102983,d8832ef4b05df945 X-Google-Attributes: gid102983,public From: Brian Miller <bmiller@telstra.com.au> Subject: Re: Telnet to Serial interface Date: 1997/09/12 Message-ID: <34187232.3DE3@telstra.com.au> X-Deja-AN: 271735708 References: <5v8ei9$irh$1@hermes.bit.net.au> <slrn61fgtd.9o6.zebee@zipper.zip.com.au> Organization: Telstra Newsgroups: comp.os.linux.misc,aus.computers.linux