Solved

automatic modem disconnnect

Posted on 1997-04-24
2
205 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
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.

828 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