Re: ppp connect/disconnect notification?

2000-08-10 Thread Bolan Meek
Thomas J. Hamman wrote:
 
 Is there any way, using pon/poff, to be notified in the console/term of
 connections and disconnections?  When I type pon, I'd like to be told
 when it actually finishes connecting; and when my ISP disconnects me,
 I'd like to be told about it so I don't scratch my head and wonder what
 happened to the server I was downloading that file from. :)  How?

There are subdirectories of /etc... (uhh) /etc/ppp.d/up, /etc/ppp.d/down,
or something like that -I don't have ... wait a minute, let me telnet 
check... - OK!  I have the Straight Dope now:

In /etc/ppp, there are scripts ip-up and ip-down, which, in turn,
call programs and scripts in ip-up.d and ip-down.d, in which you
can put some script that echoes a connection notification, or
executes `ifconfig ppp0` so you can see your address, or whatever
you want.

I haven't gotten around to it, but I want to add a script in mine
that appends domain koyote.net and search koyote.com to
my /etc/resolv.conf, since the configuration that comes from
my ISP doesn't supply those, only the nameserver ... entry.
-- 
Cc: me (I'll be off the list for the weekends)

[EMAIL PROTECTED] 972-729-5387
[EMAIL PROTECTED] (home ph. on Q) http://www.koyote.com/users/bolan
RE: xmailtool http://www.koyote.com/users/bolan/xmailtool/index.html
RMS of Borg: Resistance is futile; you shall be freed.



Re: ppp connect/disconnect notification?

2000-08-10 Thread Thomas J. Hamman
On Thu, Aug 10, 2000 at 11:06:49AM -0500, Bolan Meek wrote:
 In /etc/ppp, there are scripts ip-up and ip-down, which, in turn,
 call programs and scripts in ip-up.d and ip-down.d, in which you
 can put some script that echoes a connection notification, or
 executes `ifconfig ppp0` so you can see your address, or whatever
 you want.
 
 I haven't gotten around to it, but I want to add a script in mine
 that appends domain koyote.net and search koyote.com to
 my /etc/resolv.conf, since the configuration that comes from
 my ISP doesn't supply those, only the nameserver ... entry.
 
Thanks! :)  I'm still having some trouble though:  I've found the
scripts you're referring, but I can't get a command to work.  I tried
making a script in /etc/ppp/ip-up.d/, and within it I've tried some
different commands like:

ifconfig ppp0
echo CONNECTED
exec ifconfig ppp0   -\
ifconfig ppp0  /dev/stdout  --- tried these out of desparation

Unfortunately, nothing actually causes any output to display in my term.
:/ Yes, I did chmod +x the script, and I also tried putting the commands
into the already-existing 0dns-up script. What am I missing?

Tom



Re: ppp connect/disconnect notification?

2000-08-10 Thread Andre Berger
Thomas J. Hamman [EMAIL PROTECTED] writes:

 On Thu, Aug 10, 2000 at 11:06:49AM -0500, Bolan Meek wrote:
  In /etc/ppp, there are scripts ip-up and ip-down, which, in turn,
  call programs and scripts in ip-up.d and ip-down.d, in which you
  can put some script that echoes a connection notification, or
  executes `ifconfig ppp0` so you can see your address, or whatever
  you want.
  
  I haven't gotten around to it, but I want to add a script in mine
  that appends domain koyote.net and search koyote.com to
  my /etc/resolv.conf, since the configuration that comes from
  my ISP doesn't supply those, only the nameserver ... entry.
 
 Thanks! :)  I'm still having some trouble though:  I've found the
 scripts you're referring, but I can't get a command to work.  I tried
 making a script in /etc/ppp/ip-up.d/, and within it I've tried some
 different commands like:
 
 ifconfig ppp0
 echo CONNECTED
 exec ifconfig ppp0   -\
 ifconfig ppp0  /dev/stdout  --- tried these out of desparation
 
 Unfortunately, nothing actually causes any output to display in my term.
 :/ Yes, I did chmod +x the script, and I also tried putting the commands
 into the already-existing 0dns-up script. What am I missing?
 
 Tom

'wall' or 'xmessage' can display the output.

--Andre



Re: ppp connect/disconnect notification?

2000-08-10 Thread Thomas J. Hamman
On Fri, Aug 11, 2000 at 12:24:47AM +0200, Andre Berger wrote:
 'wall' or 'xmessage' can display the output.
 
I got that to work; thank you.

Tom



Re: ppp connect/disconnect notification?

2000-08-10 Thread Rogerio Brito
On Aug 09 2000, Thomas J. Hamman wrote:
 Is there any way, using pon/poff, to be notified in the console/term
 of connections and disconnections?  When I type pon, I'd like to be
 told when it actually finishes connecting; and when my ISP
 disconnects me, I'd like to be told about it so I don't scratch my
 head and wonder what happened to the server I was downloading that
 file from. :) How?

Just insert something in your ip-up.d/ip-down.d directories
that inform you when you're connecting or disconnecting from
your provider... Like sending your an e-mail or using wall...


[]s, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogerio Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/
 Nectar homepage: http://www.linux.ime.usp.br/~rbrito/nectar/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



ppp connect/disconnect notification?

2000-08-09 Thread Thomas J. Hamman
Is there any way, using pon/poff, to be notified in the console/term of
connections and disconnections?  When I type pon, I'd like to be told
when it actually finishes connecting; and when my ISP disconnects me,
I'd like to be told about it so I don't scratch my head and wonder what
happened to the server I was downloading that file from. :)  How?

Tom