Hanging up + resetting the modem from a script file?

Ronald S H Khoo ronald at robobar.co.uk
Fri Nov 23 20:42:03 AEST 1990


daveh at marob.masa.com (Dave Hammond) writes:

> Try running `disable tty1A;enable tty1A' from cron (or some script).

This is dangerous, you can lose init this way because it gets killed twice
in quick succession, sometimes before it's had time to re-establish the
signal handler in between.  It's inconvenient to have ps show process 1
to be <defunct> :-)  So, do put a sleep in between them, a few seconds
should be OK, I'd use about 10 -- NOT just 1!

Also, remember to ensure that you modem has been set to take notice of DTR
(AT&D2 for hayes compatibles) -- many domestic modems are not shipped that
way.
-- 
ronald at robobar.co.uk +44 81 991 1142 (O) +44 71 229 7741 (H)



More information about the Comp.unix.xenix.sco mailing list