A couple of PPP related questions
joe at tao.org.uk
Wed May 9 15:56:41 BST 2001
Content-Type: text/plain; charset=us-ascii
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
> Question 1
> Is it possible to get PPP to write it's process ID out to a file? I want =
> 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=
> 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----
More information about the Ukfreebsd