[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Send message on ppp going up|down [was Re: Install just samba client?]
Thanks muchly, Vlad.
That worked a treat. Fortunately at this stage my ppp connection is
initiated by root in /etc/rc.local so permissions won't be a problem.
If/when I require user control over pppd then I guess I will have to cross
the bridge you crossed...
Thanks again,
Damon
>From: "Vlad D. Markov" <markov@monmouth.com>
>To: "Damon McMahon" <inst_karma@hotmail.com>
>CC: Alexander.Farber@t-online.de, misc@openbsd.org
>Subject: Re: Send message on ppp going up|down [was Re: Install just samba
>client?]
>Date: Mon, 1 Sep 2003 22:44:54 -0400
>
>This sort of thing was a problem for me (running a script on ppp going
>up or down).
>
>After much searching on google, I ended up issuing my commands from a
>shell script like so -
>monmouth:
> !bg /etc/ppp/ppp.etherup
>
>where ppp.etherup is -
>#!/bin/sh
>
>/usr/local/bin/fetchmail -t 30 -d 1200 -s -f /etc/fetchmail.conf --syslog
>
>I remember a problem with arguments that made me go this route. My next
>problem was that the command was executed as the user who made the ppp
>connection. My solution was inelegant and insecure.
>
>
>
_________________________________________________________________
Hot chart ringtones and polyphonics. Go to
http://ninemsn.com.au/mobilemania/default.asp