Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 1997 14:26:00 +0100 (MET)
From:      Peter Mutsaers <plm@xs4all.nl>
To:        Larry Marso <lsmarso@panix.com>
Cc:        freebsd-questions@FreeBSD.org
Subject:   RE: Can in have an "ip-up" script with user ppp too?
Message-ID:  <199701261326.OAA07488@plm.xs4all.nl>
In-Reply-To: <XFMail.970126081537.lsmarso@panix.com>
References:  <87raj8n3ye.fsf@localhost.xs4all.nl> <XFMail.970126081537.lsmarso@panix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
>> On Sun, 26 Jan 1997 08:14:54 -0500 (EST), Larry Marso
>> <lsmarso@panix.com> said:

    LM> I use pppd.  Pray tell, how do you set up an ip-up script?

    LM> On 26-Jan-97 Peter Mutsaers wrote:
    >> In kernel PPP (pppd) I can have an ip-up script executed when the link
    >> comes up (e.g. to send batches e-mail or connect to my POP server).
    >> 
    >> Can the same be done with user PPP?

Just create an executable shell script, like the following:

#!/bin/sh
exec >/dev/console
exec 2>&1
/usr/sbin/sendmail -q
/usr/local/bin/fetchmail -f /etc/ppp/fetchmailrc


It is executed automatically when the pppd link comes up.

-- 
Peter Mutsaers  |  Abcoude (Utrecht), |  Trust is a good quality
plm@xs4all.nl   |  the Netherlands    |  for other people to have



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