Sponsored Content
Full Discussion: Disconnect scripts
Top Forums Shell Programming and Scripting Disconnect scripts Post 302483200 by DGPickett on Friday 24th of December 2010 09:54:40 AM
Old 12-24-2010
Well, you need to set an externall visible marker before you request a dial in and reset it when you request a disconnect. Then the ping or nsloopup monitor skips until the next connect. Horsepower is cheap, but the wrong approach can be partial or fragile: possibly necessary but not sufficient, where a better approach can finess all the problems and limitations. Heck, I think I need it for my VPN connection, which seems to wink out now and then and leave ie and outlook all confused.

Too bad what you have is not like Always On ISDN -- the folly of the phone company was so overpriced that we call it I Smell Dollars Now, but it had a nice enhancement where you could always get 1200 bytes per second through the D=dialer channel to support email and other low BW apps, so you were virtually always on. It acquired more B=Basic POTS = 56-64KBit channels temporarily for higher BW. Smilie

Last edited by DGPickett; 12-24-2010 at 11:07 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Connect over ssh, start something, disconnect

i'm connecting with ssh from a windows pc to a linux system. i want to start e.g. a download and close my session afterwards. how do i do this without killing the download? thx in advance. (2 Replies)
Discussion started by: sTorm
2 Replies

2. UNIX for Advanced & Expert Users

Force user to disconnect if no activity

Does anybody know how to force a user to automatically logoff a UNIX session if there is no keyboard activity for a period of time? We use COBOL and there is a BEFORE TIME option on the ACCEPT command, however, we do not want to change the many programs we have to detect this. What we really... (3 Replies)
Discussion started by: MarkN
3 Replies

3. Shell Programming and Scripting

after server disconnect ftp tranfer......

Hi, I have a problem for ftp file to server. If the server due to some reason (such as unstable) and disconnect my ftp script. Can the ftp keep automatic retry to connect? If yes, the files can be keep sending to host without duplicate? HOST=hostname USER=happyv PASSWD=happyv exec 4>&1... (2 Replies)
Discussion started by: happyv
2 Replies

4. Shell Programming and Scripting

Is it possible..when ftp session disconnect and it can automatic run again?

Hi, Is is possible when ftp script disconnect by remote server and it can restart to tranfer (such as restart in 10 mins, etc)? Please help!!!! (1 Reply)
Discussion started by: happyv
1 Replies

5. Shell Programming and Scripting

vpn connect/disconnect shell script

Hi I am not so good in scripting..trying ot learn it...need guidance of the experts in shell scripting.. Let me explain the scenario first.. a server MX1 is connected to another server MX2 through vpn..every 5 minute a script runs to test vpn connectivity between the 2 servers.when the vpn... (12 Replies)
Discussion started by: renuka
12 Replies

6. Shell Programming and Scripting

In real time - what user connects or disconnect

Write a tool that will be displayed in real time, what user connects or disconnects from a system that uses this tool :)) Maybe anyone can help me? (2 Replies)
Discussion started by: titasas
2 Replies

7. UNIX for Dummies Questions & Answers

How to disconnect telnet prompt with port no in script.

Hi Gurus, I am trying to write a script for checking the status of linux servers by connecting via telnet with port no but to terminate i have to manually type "quit" .how can i terminate the telnet session in script itself.For E.g ========================================= telnet ipaddress... (3 Replies)
Discussion started by: kapil514
3 Replies

8. Linux

Received disconnect from IP address: too many failed userauth_requests

Hi i am getting below error when doing ssh to the destination server. Please assist (1 Reply)
Discussion started by: prash358
1 Replies

9. Shell Programming and Scripting

Connect once db disconnect after all execution

Hi All, Please see the below code. it is working fine when in 'test_file' have only one emplid. test_file contains only emplid and date, like below ... 0000221|1/12/2003 0000223|1/1/1996 Problem :- when test_file contains more then one records(emplids) it is not giving any errors... (3 Replies)
Discussion started by: krupasindhu18
3 Replies

10. Shell Programming and Scripting

Trigger the execution of a script on SFTP Disconnect

Hi Guys, I suspect what I'm trying to do isn't possible, but I'm hoping someone can either confirm this or point me in the right direction. We have a third-party application which transfers a collection of files to our SFTP server ( Ubuntu 12.04 with OpenSSH ) . Once the app disconnects, we... (13 Replies)
Discussion started by: jamesdrinkwater
13 Replies
isdninfo(4)							   Special files						       isdninfo(4)

NAME
isdninfo - ISDN status device SYNOPSIS
#include <linux/isdn.h> DESCRIPTION
/dev/isdninfo is a character device with major number 45 and minor number 255. It delivers status information from the Linux ISDN subsys- tem to user level. DATA FORMAT
When reading from this device, the current status of the Linux ISDN subsystem is delivered in 6 lines of text. Each line starts with a tag string followed by a colon and whitespace. After that the status values are appended separated by whitespace. idmap is the tag of the first line. In this line for every virtual channel, the Id-string of the corresponding lowlevel driver is shown. If no driver is loaded, a - (hyphen) is shown. chmap is the tag of line 2. In this line for every virtual channel, the channel number of the corresponding lowlevel driver is shown. If no driver is loaded, -1 is shown. drmap is the tag of line 3. In this line for every virtual channel, the index number of the corresponding lowlevel driver is shown. If no driver is loaded, -1 is shown. usage is the tag of line 4. In this line for every virtual channel, the current usage is shown. The following usage constants are defined: ISDN_USAGE_NONE (0) Unused channel ISDN_USAGE_RAW (1) Channel used by raw device (currently unsupported) ISDN_USAGE_MODEM (2) Channel used by some ttyI ISDN_USAGE_NET (3) Channel used by an ISDN net-interface ISDN_USAGE_VOICE (4) Channel used by some ttyI in voice mode. ISDN_USAGE_EXCLUSIVE (64) Channel exclusively preserved for a net-interface. This value is logically or'ed with one of the other codes. ISDN_USAGE_OUTGOING (128) Channel is used outgoing. This value is logically or'ed with one of the other codes. It is set, when dialling is started and reset, when either dialling failed or after hangup. Therefore, it is not always an indicator for an established connection. To get a reliable indicator for an established connection, the driver flags (see below) have to be inspected also. flags is the tag of line 5. In this line for every driver slot, it's B-Channel status is shown. If no driver is registered in a slot, a ? is shown. For every established B-Channel of the driver, a bit is set in the shown value. The driver's first channel is mapped to bit 0, the second channel to bit 1 and so on. phone is the tag of line 6. In this line for every virtual channel, the remote phone number is shown if the channel is active. A ??? is shown, if the channel is inactive. BLOCKING BEHAVIOUR
After opening the device, at most 6 lines can be read by a user process. After that, the user process is blocked. Whenever a status change happens, the process is allowed to read 6 more lines, starting with line one. IOCTL FUNCTIONS
Currently, there are two ioctl calls supported: IIOCGETDVR Get Revision information. Returns an unsigned long value v, representing various user level interface revisions, where (v & 0xff) is the revision of the modem-register info, available via ioctl on /dev/isdnctrl. ((v >> 8) & 0xff) is the revision of the net-interface config data, available via ioctl on /dev/isdnctrl. and ((v >> 16) & 0xff) is the revision of the data delivered via /dev/isdninfo itself. IIOCGETCPS Get transfer statistics. Returns the number of bytes transferred so far for all virtual channels. The third parameter should be a pointer to an array of unsigned long of size ISDN_MAX_CHANNELS * 2. This array is filled with the byte counter values upon return. OTHER CONSTANTS
There are some more useful constants defined in /usr/include/linux/isdn.h: ISDN_TTY_MAJOR The major device number of /dev/ttyI. ISDN_TTYAUX_MAJOR The major device number of /dev/cui. ISDN_MAJOR The major device number of /dev/isdnctrl, /dev/isdninfo, /dev/ippp and /dev/isdn ISDN_MAX_DRIVERS The number of driver slots. ISDN_MAX_CHANNELS The number of virtual channels. ISDN_MINOR_CTRL The minor device number of /dev/isdnctrl0. ISDN_MINOR_CTRLMAX The minor device number of /dev/isdnctrl63. ISDN_MINOR_PPP The minor device number of /dev/ippp0. ISDN_MINOR_PPPMAX The minor device number of /dev/ippp64. ISDN_MINOR_STATUS The minor device number of /dev/isdninfo. Other constants, necessary for ioctl's on /dev/isdnctrl are listed in isdnctrl(4). AUTHOR
Fritz Elfert <fritz@isdn4linux.de> SEE ALSO
isdnctrl(4), icnctrl(4). ISDN 4 Linux 3.13 1999/09/06 isdninfo(4)
All times are GMT -4. The time now is 06:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy