Path: utzoo!attcan!uunet!husc6!bloom-beacon!mit-eddie!killer!vector!nobody From: westmark!dave@rutgers.edu (Dave Levenson) Newsgroups: comp.dcom.telecom Subject: Re: Wanted: Device to limit length of phone calls Message-ID: Date: 26 Dec 88 14:20:56 GMT Sender: chip@vector.UUCP Lines: 25 Approved: telecom-request@vector.uucp X-Submissions-To: telecom@bu-cs.bu.edu X-Administrivia-To: telecom-request@vector.uucp X-TELECOM-Digest: volume 8, issue 210, message 8 In article , ccicpg!wsccs!terry@uunet.UU.NET (Every system needs one) writes: > Set your modem up correctly and run a small C program every 1.5 hours under > cron that ioctl()'s to drop DTR. I don't think this will do what the original requestor wanted. Suppose this small C program runs at 09:00, when no-one is using the modem. Nothing much happens. A UUCP connection begins at 10:28 that should last about five minutes. But at 10:30 (two minutes into the five minute call) the modem gets forcibly disconnected! Create a shell script called uucico that gets spawned when a UUCP transfer is initiated. That shell script does two things: It spawns the real uucico (as a background process), and it sleeps for 1:30 and then disconnects the modem. If it gets the SIGCLD while it's sleeping, it may assume that it can disconnect the modem now, and then terminate itself. -- Dave Levenson Westmark, Inc. The Man in the Mooney Warren, NJ USA {rutgers | att}!westmark!dave