Path: utzoo!telecom-request Date: Mon, 6 May 1991 01:43:38 GMT From: Peter da Silva Newsgroups: comp.dcom.telecom Subject: Re: Driving a Beeper From UNIX 'tip/cu' Message-ID: Organization: A corner of our bedroom Sender: Telecom@eecs.nwu.edu Approved: Telecom@eecs.nwu.edu X-Submissions-To: telecom@eecs.nwu.edu X-Administrivia-To: telecom-request@eecs.nwu.edu X-Telecom-Digest: Volume 11, Issue 336, Message 5 of 11 Lines: 55 ddtisvr!maples@uunet.uu.net (Greg Maples) writes: > 2) The tip/cu program capable of sending those codes. (This is for > a sun 4/370) Don't use tip/cu. You don't need any interactive response, so just write a program in C, Perl, TCL, shell, lisp, basic, or IBM JCL that does this: Opens /dev/whatever_your_version_of_unix_calls_the_line Sends "+++" delay 1 second Sends "ATH\r" delay 1 second Sends "AAAAAA" delay 1 second Sends "ATDT,,," Closes /dev/whatever This will get the modem's attention no matter what mode it's in, and send the stuff. Try this: --------------- #!/bin/sh Usage='beeper ' Tty='/dev/modem' Pbx='9w' Commas=',,,' # Adjust delay for your beeper arrangement. # case $# in 2) ;; *) echo Usage: $Usage;; esac Beeper=$1 # These are the numeric magic codes we use. case $2 in information) Message='4110000';; warning) Message='6110000';; fatal) Message='9110000';; esac ( stty -echo -nl echo -n '+++'; sleep 1 # You did say you were using Suns echo 'ATH'; sleep 1 echo -n 'AAAAAA'; sleep 1 echo "ATDT$Pbx$Beeper$Commas$Message" ) > $Tty peter@taronga.hackercorp.com