Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2005 15:05:09 +0300
From:      Odhiambo Washington <wash@wananchi.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Running PPP via crontab
Message-ID:  <20050410120509.GC59286@ns2.wananchi.com>
In-Reply-To: <425911A0.90305@mail.ru>
References:  <20050410104336.GB59286@ns2.wananchi.com> <425911A0.90305@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
* Andrew P. <infofarmer@mail.ru> [20050410 14:44]: wrote:
> Odhiambo Washington wrote:
> >Hello everyone,
> >
> >I have setup a FreeBSD box which a friend of mine will run as a mail
> >server/firewall in his SOHO, using dialup (modem) to his ISP. Almost
> >everything is setup and running, even ppp can work when I manually
> >run through the dialup procedure.
> >
> >I don't have much problem configuring what he will run on this box, but
> >one aspect has pinned me down. The ppp _MUST_ not run in "auto" or
> >"ondemand" modes. It must be initiated manually.
> >
> >I would like to make a crontab entry that will run ppp after every one
> >hour. I don't have a problem with crontab, but how to invoke ppp via it
> >;)
> >
> >I'd appreciate some hand-holding here. What shall I put as the command
> >that will be run by cron?
> 
> 
> 1 */1 * * * root /usr/sbin/ppp -quiet -ddial -nat mtu
> 
> Something like this where "root" is the user
> to run ppp as (remove it in case you're not
> a superuser and not editing /etc/crontab),
> "-ddial" is the mode - change it to whatever
> you need, "-nat" enables nat (you can also do
> it from ppp.conf), and "mtu" is the section
> of ppp.conf to load.


Hello Andrew, et al,

I figured out I could use "ppp -background sucks" (where sucks is
the ISP label in ppp.conf). This seems to be what I am looking for,
no?? I can run it on the command line. I hope it will do same thing
via cron.


-Wash

http://www.netmeister.org/news/learn2quote.html

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash@wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+
One way to make your old car run better is to look up the price of a
new model.



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