A couple of PPP related questions

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


--fCcDWlUEdh43YKr8
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.
>=20
> 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=
he
> morning. I could do it by grepping PS for the PID but I wondered if there=
 was
> a more elegant solution.

# killall ppp ?
=20
> 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.

Joe

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

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

iEYEARECAAYFAjr5WqgACgkQXVIcjOaxUBa06ACfeKF74XVVAw3Cx1zvkd5U0iyE
p24AoI0io6IwFYUUftSe9Mp5NA2zHONQ
=Qt1i
-----END PGP SIGNATURE-----

--fCcDWlUEdh43YKr8--




More information about the Ukfreebsd mailing list