Re: ppp connect/disconnect notification?
"Thomas J. Hamman" <email@example.com> 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?
'wall' or 'xmessage' can display the output.