From: John Paul Morrison (jmorriso@rflab.ee.ubc.ca)
Date: 04/12/93


From: jmorriso@rflab.ee.ubc.ca (John Paul Morrison)
Subject: Re: Trying to kill getty so I can dial out on ttys2; help
Date: 12 Apr 1993 23:31:52 GMT

In article <C5B64w.1ts@sdf.lonestar.org> corey@sdf.lonestar.org (Corey Carroll) writes:
>
>I also figured out how to access Linux via a null-modem cable; I was able
>to get xfer rates of 19,200 bits per second using my PC as a 'dumb' terminal.
>I also figured out how to hook a modem to a com port and get getty to look
>for activity there; I had two phone lines and two modems to play with, so
>I taught myself alot..

lucky, I havent been able to get that *reliably*.
>
>Question: Now I want to set up the Linux box so I can dial in to it from
>home; no problem there; but if I am at work (where the Linux box is) and
>want to DIAL OUT with the modem, I run into a problem. I use kermit and
>set the appropriate line, but when I try connecting, getty starts asking
>for logins. I want to be able to kill getty and just talk directly to the
>modem with the at commands; I tried killing getty after getting its pid,
>but every time I kill it (even as root with kill -9), it comes back under
>a different pid! How do I remedy this situation? (Now I just edit out
>the getty in the /etc/inittab file and then sync and reboot...there's got
>to be a better way?)

I thought the /dev/cua?? devices were supposed to work for dialout.
they dont work properly though. typically a getty is running, say on ttyS0,
and you should be able to start kermit with /dev/cua0, and the getty shouldnt
hog the line if it's just waiting. anyway, maybe that'll get fixed. instead
of editing inittab every time, just kill the getty and start your dialout
in the same line:
        kill pid; kermit -l /dev/modem
it works, and it's easier than editing inittab every bloody time. the
kill gets rid of the getty sitting on the port, and kermit gets started very
quickly afterwards; quicker than init can respawn the getty.

>
>Oh, the usual specs: I am running Linux 0.98pl5 on a 386sx-25; the modem
>is a typical hayes compatible at-command type modem. I have no idea what
>version of getty I am using; I guess I could strings it and find out?
>
>
>--
>corey@sdf.lonestar.org 214-296-0458 Corey Carroll

-- 
__________________________________________________________________________
 John Paul Morrison                     |  
 jmorriso@rflab.ee.ubc.ca        VE7JPM | .sigfile without a cause
 ubc-cs!rflab.ee.ubc.ca!jmorriso        |
________________________________________|_________________________________