Path: utzoo!attcan!uunet!mcvax!ukc!axion!galadriel!pcf From: pcf@galadriel.bt.co.uk (Pete French) Newsgroups: comp.unix.wizards Subject: Re: Can cu do call-backs to terminals? Message-ID: <318@galadriel.bt.co.uk> Date: 11 Aug 89 08:15:05 GMT References: <960001@teecs.UUCP> Organization: RT6115, BTRL, Martlesham Heath, England Lines: 15 From article <960001@teecs.UUCP>, by belkin@teecs.UUCP (Hershel Belkin): > I thought there might be some way using "cu" to place the call-back, but > I don't know how I'd then associate a getty with the connected line. > (ie. "cu" calls, my modem answers, ... then what??) Forget cu - it does far more than you need. I had to do this once and the solution I came up with was to write a C program that called out on a hayes modem line and when it got a 'CONNECT' message it forked a getty. For this to work the process must attach stdin, stdout and stderr to the outgoing terminal line and then set itself to be the head of a process group. If not then /dev/tty will not point to the right device. I do not have the src available on my current machine however (and I never quite finished it anyway...) -Pete French.