Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

automatic modem disconnnect

Posted on 1997-04-24
2
Medium Priority
?
210 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 150 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

963 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