Solved

automatic modem disconnnect

Posted on 1997-04-24
2
196 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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

763 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

9 Experts available now in Live!

Get 1:1 Help Now