From owner-freebsd-questions Sun Jan 26 05:26:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA08627 for questions-outgoing; Sun, 26 Jan 1997 05:26:39 -0800 (PST) Received: from magigimmix.xs4all.nl (magigimmix.xs4all.nl [194.109.6.25]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA08622 for ; Sun, 26 Jan 1997 05:26:35 -0800 (PST) Received: from plm.xs4all.nl (asd-isdn03-29.dial.xs4all.nl [194.109.46.94]) by magigimmix.xs4all.nl (8.7.6/XS4ALL) with ESMTP id OAA13893; Sun, 26 Jan 1997 14:26:32 +0100 (MET) Received: (from plm@localhost) by plm.xs4all.nl (8.8.4/8.8.4) id OAA07488; Sun, 26 Jan 1997 14:26:00 +0100 (MET) Date: Sun, 26 Jan 1997 14:26:00 +0100 (MET) Message-Id: <199701261326.OAA07488@plm.xs4all.nl> From: Peter Mutsaers To: Larry Marso Cc: freebsd-questions@FreeBSD.org Subject: RE: Can in have an "ip-up" script with user ppp too? In-Reply-To: References: <87raj8n3ye.fsf@localhost.xs4all.nl> Sender: owner-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk >> On Sun, 26 Jan 1997 08:14:54 -0500 (EST), Larry Marso >> 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