Solved

automatic modem disconnnect

Posted on 1997-04-24
2
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

752 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