Re: pon - When am I connected?

1998-05-30 Thread Patrick L. McGillan
I just start a ping to a known good ip number and wait until it starts
getting the pings back. Once they come back I know the ppp conection is up
and alive.

Patrick

-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Cc: debian-user@lists.debian.org debian-user@lists.debian.org
Date: Friday, May 29, 1998 7:38 AM
Subject: pon - When am I connected?


ifconfig will show a connection to ppp0  when the connection is
established.  You could write a script that runs ifconfig every second or
so using grep to  look for 'ppp0' and report when the link is up, then stop
itself.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: pon - When am I connected?

1998-05-30 Thread Lazar Fleysher


Maybe it is not the best way, but I have the following command in my
ip-up script.

wall PPP is UP


ZORO


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: pon - When am I connected?

1998-05-30 Thread Mike Schmitz
On Fri, May 29, 1998 at 10:01:32PM -0600, Lazar Fleysher wrote:
 
 
 Maybe it is not the best way, but I have the following command in my
 ip-up script.
 
 wall PPP is UP

Better make thatecho PPP is UP | wall

-- 
  Mike Schmitz [EMAIL PROTECTED]http://www.bend-or.com/~mschmitz   
  Don't blame me - I voted libertarian!http://www.lp.org/ 
  Use Debian Linux - the free Gnu/Linuxhttp://www.debian.org/
  ---
 If encryption is outlawed, only outlaws will have encryption 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: pon - When am I connected?

1998-05-29 Thread Norbert Veber
On Thu, May 28, 1998 at 03:47:46PM +0100, Ian Lynagh wrote:
 
 As root I do pon whatever and 3 seconds or later it is connected.
 However, I cannot tell when except by trying it until it works.
 How do I tell when a connection has been negotiated? And how can
 I tell if it has failed? Using PAP for the moment, in case it matters.

plog -f

 
 Also, is there any way I can run a program that gives me some
 useful stats on he connection (CPS in/out, time been up etc).
 At the moment I am using pppstats -w 1

I use pppload swallowed in afterstep's wharf (in X) there is also a window
maker specific program called wmppp.app (not nearly as useful if you ask
me)..


pgpBfbHyB2x7O.pgp
Description: PGP signature


Re: pon - When am I connected?

1998-05-29 Thread Ed Cogburn
Ian Lynagh wrote:
 
 As root I do pon whatever and 3 seconds or later it is connected.
 However, I cannot tell when except by trying it until it works.
 How do I tell when a connection has been negotiated? And how can
 I tell if it has failed? Using PAP for the moment, in case it matters.
 
 Also, is there any way I can run a program that gives me some
 useful stats on he connection (CPS in/out, time been up etc).
 At the moment I am using pppstats -w 1 IIRC.
 
 Console only for the moment, although I'm interested in X as well.
 
 Thanks
 Ian


Besides plog, you can also use ifconfig to tell when ppp0 connection is
made.


-- 
Ed


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


pon - When am I connected?

1998-05-29 Thread Kenneth . Scharf
ifconfig will show a connection to ppp0  when the connection is
established.  You could write a script that runs ifconfig every second or
so using grep to  look for 'ppp0' and report when the link is up, then stop
itself.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


pon: When am I connected

1998-05-29 Thread Ashok Gopalakrishnan
Linux Journal June 98 has an article on a user interface for starting and
stopping PPP connections. The entire article is on line as also the scripts
that you need to set up your system.

The author has described his Slackware configuration (3.4, I think). It was
not that difficult to set it up under Debian 1.3.1.

The UI is implemented as Wish scripts. The article describes how to create a
button for your desktop under fvwm95. (Works for fvwm2 also).
Clicking on the button will open a window which shows what is
happenning with your PPP connection. When the connection is successfully
established, the window collapses to the button. You see a clock that
tells you the up time of your connection. A Quit
button is also seen, which when pressed will disconnect.

I am able to run this as a general user.

Point to http://www.ssc.com/lj/previous and look for PPPui: A Friendly GUI for
PPP, by Nathan Myers.

Ashok
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


RE: Pon - when am i connected?

1998-05-29 Thread tony mollica
You can use the ip-up and ip-down scripts located in
/etc/ppp.  The ip-up script is run when a ppp connection
is successfully made.  Parameters are passed to this
script that can be used to echo the connection data 
wherever you want (tty, ttyp0, etc).  You can use
ip-down script to display a message when the connection
is brought down.  I also have a couple of lines in these
scripts to place a date/time entry into a file to keep 
track of my logons/logoffs.


-- 
tony mollica
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


pon - When am I connected?

1998-05-28 Thread Ian Lynagh

As root I do pon whatever and 3 seconds or later it is connected.
However, I cannot tell when except by trying it until it works.
How do I tell when a connection has been negotiated? And how can
I tell if it has failed? Using PAP for the moment, in case it matters.

Also, is there any way I can run a program that gives me some
useful stats on he connection (CPS in/out, time been up etc).
At the moment I am using pppstats -w 1 IIRC.

Console only for the moment, although I'm interested in X as well.

Thanks
Ian
-- 
Ian Lynagh - [EMAIL PROTECTED]
http://home.sol.no/~balchen/igloo/

24 Hours in a day. 24 beers in a case. Coincidence?


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: pon - When am I connected?

1998-05-28 Thread aqy6633
 As root I do pon whatever and 3 seconds or later it is connected.
 However, I cannot tell when except by trying it until it works.
 How do I tell when a connection has been negotiated? And how can
 I tell if it has failed? Using PAP for the moment, in case it matters.

plog

Alex Y.

-- 
   _ 
 _( )_
( (o___   +---+
 |  _ 7   |Alexander Yukhimets|
  \()|   http://pages.nyu.edu/~aqy6633/  |
  / \ \   +---+


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]