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-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 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 
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-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]


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]


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-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]