making SCO Xenix answer the phone

Mike Mitchell mdm at cocktrice.UUCP
Thu Dec 15 11:35:11 AEST 1988


In article <AXc5o4y00ZJBE1jVdf at andrew.cmu.edu> jl42+ at 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 at cocktrice.UUCP
Santa Fe, NM 87505			UUCP:	...!uunet!dmk3b1!cocktrice!mdm



More information about the Comp.unix.xenix mailing list