*BSD News Article 54620


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!munnari.OZ.AU!spool.mu.edu!torn!news.bc.net!news.uoregon.edu!gatech2!ncar!elroy.jpl.nasa.gov!swrinde!newsfeed.internetmci.com!tank.news.pipex.net!pipex!demon!mail2news.demon.co.uk!nwpeople.demon.co.uk
From: Iain Baird <iain@nwpeople.demon.co.uk>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: iijppp question
Date: Tue, 14 Nov 95 18:50:25 GMT
Organization: Network People International
Lines: 40
Message-ID: <816375025snz@nwpeople.demon.co.uk>
Reply-To: iain@nwpeople.demon.co.uk
X-NNTP-Posting-Host: nwpeople.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.30

Can iijppp be made to execute an program or script when the
PPP link comes up?

I would like to be able to start sendmail -q and slurp
automatically when PPP comes up.  I would also like to be able
to choose whether to run slurp (nntp) according to the time
of day and hence the telephone tariff.  I can do all this
in a script, but can iijppp be made to run it?

ppp(8) says "If the /etc/ppp/ppp.linkup file is available, its
contents are executed when the PPP connection is established."
It says nothing about the format of those contents.

The file /etc/ppp/ppp.linkup.sample is not a shell script; it
appears to have the same format as /etc/ppp.conf.  Of this ppp(8)
says "Each line contains one command, label or comment".

I can't find any list of all the valid commands.  Is there an
iijppp command to execute a program/script?

The Handbook section 11.1 says nothing about this directly,
however it does say "...the upshot of this is that I must force
sendmail to re-examine the mailqueue whenever I have the PPP
link up by typing...".  This suggests that there is no way to
get iijppp to do this automatically.  If so, this is sad.

According to pppd(8), kernel PPP can do this via /etc/ppp/ip-up
(and /etc/ppp/ip-down), but it can't do dial on demand :(

Is there any way to get the best of both worlds?

[All documentation from 2.1.0-961026-SNAP]


iain

-- 
Iain Baird                                     Network People International
                                               Tel: +44 (0)1732 743591