Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!decvax!ucbvax!sdcsvax!ucsdhub!jack!man!nusdhub!rwhite From: rwhite@nusdhub.UUCP (Robert C. White Jr.) Newsgroups: comp.unix.questions Subject: Re: Dialing in/out with System V Message-ID: <186@nusdhub.UUCP> Date: Thu, 29-Oct-87 19:02:19 EST Article-I.D.: nusdhub.186 Posted: Thu Oct 29 19:02:19 1987 Date-Received: Wed, 4-Nov-87 03:40:46 EST References: <167@wa3wbu.UUCP> Organization: National University, San Diego Lines: 43 Summary: uugetty In article <167@wa3wbu.UUCP>, john@wa3wbu.UUCP (John Gayman) writes: > autodial! I couldnt beleive this. IS there an easy workaround or is this > a System V 'feature' ?? They have some kind of kluge script setup > to edit the inittab, init -q and then dialout, then edit inittab, init -q If microport doesn't offer /usr/lib/uucp/uugetty, I don't know what to say... There ought to be a package like "Basic Networking Utilities" which has the necessary files to support two way comunications over a single modem. > of the usual plain /dev/tty0. Thanks! Our SysV doesn't have this... I'v never heard of /dev/ttyM0 [???] If you have to put the modem support together your self the sequence goes something like this... [With the modem only bringing carrier detect high when the modem actually detects carrier...] (program in place of getty:) 1) Attempts to open /dev/tty{whatever} with or without blocking [etc] 2) If/when the program is seccussful it checks for a lock file [in SVR2.0.x and above these are /usr/spool/locks/LCK..{ttyname} and they contain the process number of the locking process] 3) if there is no lock file, create one [containing pid] and then exec() getty 4) If there is a lockfile use kill(0,pid) to see if it is valid. if it is valid sleep for a minute and then loop to #1. It will be necessary to hack uucico and cu to dial the phone by doing the check for lock file as above, dial the modem with CLOCAL set and then unsetting it after "answer" or failure. If you don't have source you can write a dialer which conforms as above but which then exec()(s) "cu.real -s{speed} -l{line}" if it was invoked as "cu" and similarly uucico.real [etc] This dialer is left as an excercize for the reader. Rob.