Xref: utzoo unix-pc.general:3024 comp.sys.att:6643 Path: utzoo!utgpu!watmath!uunet!shelby!agate!ucbvax!tut.cis.ohio-state.edu!n8emr!uncle!jbm From: jbm@uncle.UUCP (John B. Milton) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: phone lines and obm Keywords: phtoggle(1), dial(3C), phone(7) Message-ID: <547@uncle.UUCP> Date: 8 Jun 89 19:06:00 GMT References: <165@zebra.UUCP> Reply-To: jbm@uncle.UUCP (John B. Milton) Distribution: na Organization: U.N.C.L.E. Lines: 20 In article <165@zebra.UUCP> vern@zebra.UUCP (Vernon C. Hoxie) writes: [ wants to do phtoggle from cron ] Well, what you really want to do is tell the phone manager to do it's thing and switch the lines. Although you COULD switch them with your own ioctl(2) calls, the phone manager would just switch it back, or crash. What the phtoggle progam does, is write a command to a file in /usr/lib/ua, then send a signal to ph, who's pid can be found in another file in /usr/lib/ua. You could replace phtoggle with your own program, but I don't think that would solve the window problem, because it is probably coming from the phone manager. I am being vague about details because I haven't run the phone manger in some time. I found that I am rarely at the machine when the phone rings, a grep of a file in my home dir works ok, and I don't want to run a 200k+ program (ph from the fix disk) John -- John Bly Milton IV, jbm@uncle.UUCP, n8emr!uncle!jbm@osu-cis.cis.ohio-state.edu (614) h:294-4823, w:466-9324; N8KSN, AMPR: 44.70.0.52; Don't FLAME, inform!