Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!wuarchive!cs.utexas.edu!rutgers!att!westmark!dave From: dave@westmark.UU.NET (Dave Levenson) Newsgroups: comp.dcom.modems Subject: Re: Sending "AT" command via getty? Message-ID: <633@westmark.UU.NET> Date: 12 Aug 90 00:50:35 GMT References: <221@mixcom.UUCP> Distribution: usa Organization: Westmark, Inc., Warren, NJ, USA Lines: 27 In article <221@mixcom.UUCP>, xeee02@mixcom.UUCP (Dean A. Roth) writes: > I want to send an "AT" command to my modems > between calls. Thus, when one call ends, I want > to send an "AT" command string to the modem before > the next call is answered. > Can this be done via getty, or any other way? > Thank you. I, too, wanted something like this. Having no source code for uugetty, and not wanting to re-invent that wheel, I did the following: Write a new program that takes exactly the same command line arguments as getty, plus another one (I used -A) specifying a file to be copied out to the tty port. This program simply opens the tty port as stdin, stdout, and stderr, writes out the content of the initialization file (containing AT commands) and then spawns the real uugetty (or getty) program. The original uugetty remains unchanged, and the inittab file is edited to respawn my pre-getty program on each modem line. -- Dave Levenson Voice: 908 647 0900 Fax: 908 647 6857 Westmark, Inc. UUCP: {uunet | rutgers | att}!westmark!dave Warren, NJ, USA AT&T Mail: !westmark!dave [The Man in the Mooney]