A couple of PPP related questions

Josef Karthauser joe at tao.org.uk
Wed May 9 15:56:41 BST 2001

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, May 09, 2001 at 03:52:58PM +0100, Neil Ford wrote:
> I suspect people may already be doing what I want to do, so I thought I'd
> ask.
> Question 1
> Is it possible to get PPP to write it's process ID out to a file? I want =
to be
> able to have a cron job kill the PPP process at night and restart it in t=
> morning. I could do it by grepping PS for the PID but I wondered if there=
> a more elegant solution.

# killall ppp ?
> Question 2
> Whats the best way to extract the dynamic IP address that's been allocate=
d to
> a machine by an ISP. I ideally want the machine to mail this detail out
> everytime it makes the connection.  You can probably guess where I'm going
> with this one :-)

You can probably do something cool in /etc/ppp/ppp.linkup.  MYADDR
should be replaced with the dynamic address that you got.


Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org



More information about the Ukfreebsd mailing list