Solved

automatic modem disconnnect

Posted on 1997-04-24
2
204 Views
Last Modified: 2013-12-16
How do you force a remote modem to drop the carrier once the user logs-out from a remote session on my server (SCO openServer 5)? and in the same time make sure that all processed associated with the task the user was in terminate?
0
Comment
Question by:glouise
2 Comments
 
LVL 1

Expert Comment

by:ian010997
ID: 1812062
set the modem for DSR follows carrier.  it is just a modem thing, not a unix thing :)
0
 

Accepted Solution

by:
jbirtley earned 50 total points
ID: 1812063
Set the modem to follow the line carrier by executing the command:
      AT&C1

whilst connected to the modem.  On a SCO box, you should be able to do this with 'cu -lttya direct'.

Then type:

      ~.

to exit from the modem.

This means that the modem will follow the carrier line, so if the kline drops then so will the modem, and all processes attached to the tty (execept those that were executed with 'nohup') will also terminate.

The only side-effect of this (AFAIK) is that if you get noise on the line that lasts longer than the number of tenths of a second secified in register 25 (S25) then the modem will hang up.

You can set the value of register S25 by typing:

      ATS25=200

and this will tell it to wait 200ms after a change in carrier before assuming that the line has hung up.

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now