Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Sep 2001 23:19:11 +0200
From:      Piet Delport <siberiyan@mweb.co.za>
To:        The Psychotic Viper <psyv@sec-it.net>
Cc:        Dru <genisis@istar.ca>, Raymond Pert <rpert@ji-net.com>, freebsd-newbies@FreeBSD.ORG
Subject:   Re: PPP what next!
Message-ID:  <20010923231911.B1327@athalon>
In-Reply-To: <20010923145634.S49297-100000@lucifer.fuzion.ath.cx>
References:  <20010923025411.A23038@athalon> <20010923145634.S49297-100000@lucifer.fuzion.ath.cx>

next in thread | previous in thread | raw e-mail | index | archive | help

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

On Sun, 23 Sep 2001 at 15:01:43 +0200, The Psychotic Viper wrote:
> On Sun, 23 Sep 2001, Piet Delport wrote:
> > On Wed, 19 Sep 2001 at 07:32:15 -0400, Dru wrote:
> > > If your prompt changes to all caps or PPP, you're connected.
> > > You've also lost that prompt for the duration of your connection,
> > > so open up another terminal using your ALT Function keys. Running
> > > a trace route or a ping to a URL is a good connection test. When
> > > you're finished, return to the terminal with the PPP prompt and
> > > type the word by.
> >
> > The prompt isn't necessarily lost.  You can press <Ctrl-Z> to
> > suspend PPP and return to your prompt, then immediately type `bg' to
> > let it continue executing in the background.
> >
> > To shut it down again, type `fg' to bring it into the foreground,
> > then `close' to close the connection.
>=20
> Just a note though, when u fork ppp AFAIK it stops data transfer for
> the period you suspend it. You could try the 'bg' command inside
> ppp(IIRC does the same as forking though) , or 'shell'. I personally
> start ppp with the -background option and recall ppp if i need it then
> 'quit' it to return to the prompt(does not kill my ppp). Killing ppp
> is simply done with a killall -INT ppp. Works fine for me and I have a
> working ppp and the full use of all my local ttys.

Yep, that's the better way. :-)

Personally, i use a socket to control ppp.

My ppp.conf contains a line like this:

	set socket /var/run/ppp "" 0117

Then, i have a script called `pppdial' that contains something like:

	#!/bin/sh
	/usr/sbin/ppp -background && /usr/local/sbin/ipcheck

and a script called `pppc' that contains:

	#!/bin/sh
	exec /usr/sbin/pppctl /var/run/ppp "$@"

Now, i go `pppdial' to connect, `pppc close' to disconnect, `pppc show
ipcp' to show statistics, and so on.  A plain `pppc' gets me an
interactive session.

--=20
Piet Delport <siberiyan@mweb.co.za>
Today's subliminal thought is:

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)

iD8DBQE7rlHPzRUP82sZFCcRAuxAAKCY23jws6UANO+LcrApEQ20DHenkwCfZ6vd
UPanDdtL20y3uSYecz3SVX4=
=JsTY
-----END PGP SIGNATURE-----

--tjCHc7DPkfUGtrlw--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010923231911.B1327>