xeee02@mixcom.UUCP (Dean A. Roth) (08/08/90)
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. Dean xeee02@mixcom.uucp
kebsch@nixpbe.UUCP (Kebsch) (08/10/90)
In <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. >Dean >xeee02@mixcom.uucp What's about a "private" issue file? You should look at the man pages for getty. Example: [some lines deleted] SYNOPSIS /etc/getty [ -h ] [ -t timeout ] [ -l ] [ -i alt.issue ] line [ speed [ type [ linedisc ] ] ] ^^^^^^^^^^^^ /etc/getty -c file [some lines deleted] The -i flag is used to sepcify another issue file than /etc/issue. This may be usefull in combination with uucp lines or similar connections. [some lines deleted] Good luck .. W. Kebsch -- [ Waldemar Kebsch, Nixdorf Computer AG, Dep.: PSD-C-61, Pontanusstrasse 55, ] [ 4790 Paderborn, Federal Republic of Germany, Tel.: [nat]-5251-14-6129 ] [ Usenet: (USA) kebsch.pad@nixbur.uucp, kebsch.pad@nixntc.uucp ] [ Eunet: kebsch.pad@nixpbe.uucp, X.400: kebsch@pad.nixdorf.dbp.de ]
dave@westmark.UU.NET (Dave Levenson) (08/12/90)
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]
dold@mitisft.Convergent.COM (Clarence Dold) (08/13/90)
in article <633@westmark.UU.NET>, dave@westmark.UU.NET (Dave Levenson) says: > 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 getty or uugetty? If we're talking in-bound only getty, okay. If you're talking about bi-directional uugetty, your script could interfere with other processes, unless it manipulates the lock files the same way that uugetty does. Does the program 'ct' like your manipulations? -- --- Clarence A Dold - dold@tsmiti.Convergent.COM (408) 435-5293 ...pyramid!ctnews!tsmiti!dold FAX (408) 435-3105 P.O.Box 6685, San Jose, CA 95150-6685 MS#10-007
andy@rbdc (Andy Pitts) (08/17/90)
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. >Dean >xeee02@mixcom.uucp Paul Sutcliffe Jr. posted a getty replacement for SysV in alt.sources a few months back that does just this. I have modified his code so it also knows about "CONNECT XXXX" strings and sets the line speed. My modifications have only been tested on AT&T System V/386 R3.2. If anyone is interested I'll be happy to mail a them a copy. There is both a getty an uugetty version. (Why do I have the feeling I'm going to regret this :-) :-) ) -- Andy Pitts andy@rbdc.UUCP : "God is an overwhelming responsibility" ...!emory!kd4nc!rbdc!andy : --Jethro Tull--
xeee02@mixcom.UUCP (Dean A. Roth) (08/27/90)
In article <kebsch.650278733@peun33> kebsch@nixpbe.UUCP (Kebsch) writes: >What's about a "private" issue file? You should look at the man pages >for getty. >Example: >[some lines deleted] > SYNOPSIS > /etc/getty [ -h ] [ -t timeout ] [ -l ] [ -i alt.issue ] > line [ speed [ type [ linedisc ] ] ] ^^^^^^^^^^^^ > /etc/getty -c file >[some lines deleted] Unfortunately there are probably no two UNIX systems that are exactly alike. The getty with SCO UNIX 3.2 is not the same getty as on other machines. In fact one can get getty source code from several places. In short, SCO UNIX 3.2's getty does not support the "-i" option that some getty programs support. At least according to SCO's manual. Dean