Solved

detecting when a modem has connected

Posted on 2000-03-28
5
215 Views
Last Modified: 2010-04-20
question title says it all really. basically i'd just like to know if there is a way to detect when the modem has finished "talking" to the modem on the other end of the line, and if there is, how to do it.
0
Comment
Question by:dwatling
5 Comments
 

Expert Comment

by:moheynow
ID: 2665431
testing, please disregard
0
 
LVL 2

Expert Comment

by:dbusher
ID: 2665688
I am not sure if you mean Linux connecting to host or host connecting to Linux; But, in Linux if you issue the command ifconfig at a terminal prompt. You should find the ppp0 device listed in the output. It may look something like this:
ppp0      Link encap:Point-to-Point Protocol
      inet addr:204.192.67.100      P-t-P:204.91.204.91
Mask:255.255.255.0
      UP POINTOPOINT      RUNNING      MTU:1500 Metric:1
      RX packets:492  errors:0  dropped:0  overruns:0
      TX packets:682  errors:0  dropped:0  overruns:0

If you only so the loop back (lo) then you have not connected.
0
 

Author Comment

by:dwatling
ID: 2670337
that is what i meant, checking to see when linux has finished connecting to a remote host.

are there any other methods that might work? maybe a newly created file perhaps?

0
 
LVL 1

Accepted Solution

by:
Barn_Owl earned 50 total points
ID: 2676849
You could but an echo in the ip-up file as this file is only read after a successful session start. Or just DL a ppp monitor for your favorite window manager. For WM I like WMppp
0
 

Author Comment

by:dwatling
ID: 2685149
Exactly what I was looking for. Thanks.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

831 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