Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!pacbell!ditka!cocktrice!mdm From: mdm@cocktrice.UUCP (Mike Mitchell) Newsgroups: comp.unix.xenix Subject: Re: making SCO Xenix answer the phone Message-ID: <355@cocktrice.UUCP> Date: 15 Dec 88 01:35:11 GMT References: Reply-To: mdm@cocktrice.UUCP (0000-Mike Mitchell) Organization: Mike's Playground, Santa Fe, New Mexico Lines: 26 In article jl42+@andrew.cmu.edu (Jay Mathew Libove) writes: >I have a cron script do "enable tty1a" at 1am and "disable tty1a" at >4am, as I want the machine to answer the phone between 1am and 4am >only, but it doesn't pick up the phone when it rings. I've tried >"echo ATS0=1 >> /dev/tty1a" and also "... >> /dev/tty1A" and I've >tried enabling tty1A as well as, and instead of, tty1a, and nothing >seems to get the phone to answer! I do the following on Microport V/AT. I'll bet that this would work for you too (I remember doing this on a Sun 2 a long time ago...) enable.sh (stty 2400; echo ATS0=1) < /dev/tty0 > /dev/tty0 disable.sh (stty 2400; echo ATS0=0) < /dev/tty0 > /dev/tty0 The stty sets the line rate for stdin and insures that the command is echoed to the port at the right baud rate. -- Mike Mitchell BELL: (505) 471-7639 2020 Calle Lorca #43 ARPA: mdm@cocktrice.UUCP Santa Fe, NM 87505 UUCP: ...!uunet!dmk3b1!cocktrice!mdm