Resetting a dialin/dialout modem

Perry Minyard 3MTA3 perry at bluemtn.uucp
Thu May 10 03:18:30 AEST 1990


Our system is running SCO Xenix 2.3.2, with a Hayes modem off COM1:
or {tty1a,tty1A}.   We use it as a dialin/out modem, and occasionally,
the modem does not reset itself properly after attempting to dialout.
Until it is reset, it will not answer the phone again. 

I just wanted to share this information with everyone.  Put the following 
line in your '/usr/spool/cron/crontabs/root' file.  (This will reset the
modem on port tty1A if it's not in use, and wont disrupt any process if
it is in use):


 /bin/kill `ps -e | sed -n '/?  0:0. getty/s/^[ ]*\([^ ]*\).*/\1/p'` >/dev/null

I have my cron run it every 5 minutes.


-- 
"A mind is a terrible thing to taste."   | Perry Minyard
                                         | ..{uunet,emory}!bluemtn!perry
-------------------------------------------------------------------------



More information about the Comp.unix.xenix mailing list