🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2633

Re: Sample Cron Entries For CNews, NNTP, And NN

#2633
From: J.P.M. van der Jagt
Date: Mon, 30 Mar 1992 15:28
69 lines
3658 bytes
westes@netcom.com (Will Estes) writes:
>I'm curious what entries others put in their cron tables for CNews,
>NNTP, and NN (discounting differences due to things like the number of
>sites you feed, of course).  Mine looks something like this:
[his jobs deleted]

On the nntp-client (running nn64pl16+menu_patch+add_sig and rn.pl54):
=====================================================================
# Maintain the nn-logfile once a month
05 13 1 * * /usr/local/lib/nn/nn_monthly
# Expire the nn-database and update nngrab-database once a day
2 6 * * * /usr/local/lib/nn/nn_dayly
# Build an up to date default .newsrc for new users
10 7 * * 1,2,3,4,5 /usr/local/etc/create.newsrc
# Don't run diskwarn in the weekends

nn_monthly is:
#!/bin/sh
# @(#) nn_monthly,  by J.P.M. van der Jagt
/usr/local/bin/nnadmin L@  >> /usr/local/lib/nn/cronlog 2>&1

nn_dayly is:
#!/bin/sh
# @(#) nn_dayly,  by J.P.M. van der Jagt
/bin/date >> /usr/local/lib/nn/cronlog 2>&1
/usr/local/bin/nnadmin EYW >> /usr/local/lib/nn/cronlog 2>&1
/usr/local/lib/nn/nnspew >> /usr/local/lib/nn/cronlog 2>&1

create.newsrc is:
#!/bin/sh
# @(#) create.newsrc  By J.P.M. van der Jagt
# executed by cron to create a fresh .newsrc for new users
TMP=/usr/adm/newuser.def/newsrc
NEWSRC=/usr/adm/newuser.def/.newsrc
/usr/local/lib/rn/getactive $TMP
/bin/rm -f $NEWSRC
echo "general: 0" > $NEWSRC
echo "news.announce.newusers: 0" >> $NEWSRC
/bin/egrep -v "general|news.announce.newusers" $TMP |sed 's/ .*$/! 0/'>>$NEWSRC
/bin/rm -f $TMP

On the nntp-server (running Cnews_24-Mar-91 and nntp.1.5.11):
=============================================================
15 *       1-31 * 0-6   /usr/lib/news/newsbin/input/newsrun
#30 8       1-31 * 1-5  /usr/lib/news/newsbin/input/newsrunning off
#00 17      1-31 * 1-5  /usr/lib/news/newsbin/input/newsrunning on
45 *       1-31 * 0-6   /usr/lib/news/nntp/sendnntp
#40 *       1-31 * 0-6  /usr/lib/news/newsbin/batch/sendbatches
59 3       1-31 * 0-6   /usr/lib/news/newsbin/expire/doexpire
10 8       1-31 * 0-6   /usr/lib/news/newsbin/maint/newsdaily
00 5,13,21 1-31 * 0-6   /usr/lib/news/newsbin/maint/newswatch
40 6       1-31 * 0-6   /usr/lib/news/statistics

"#" are not active, of course.
sendnntp is a script that makes sure a batchfile is quiet and then executes
a nntpxmit. statistics is a script that does some dayly and weekly statistics.
If you're interested, I can post/mail.

If I did something stupid I'd like to know   :-)

>Thanks,
>Will Estes         Internet: westes@netcom.com
Your welcome.
Regards, John-Paul.
-- 
[] J.P.M. van der Jagt [] Systems manager [] Delft University of Technology []
[] Email: jeanpaul@duteca.et.tudelft.nl [] Phone: 31-15-781366 [] unix unix []
[] - He sells C-shells by the seashore - Lauren Bacall - Key Largo - 1948 - []
Technical Details
Message-ID: <1992Mar30.152800.25315@donau.et.tudelft.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.mbox.zip!sparky!uunet!mcsun!sun4nl!donau!dutecad.et.tudelft.nl!jeanpaul
References: <+rfjdnkwestes@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <1992Mar30.152800.25315@donau.et.tudelft.nl>
Subject: Re: Sample Cron Entries For CNews, NNTP, And NN
Date: Mon, 30 Mar 1992 15:28:00 +0000
From: jeanpaul@dutecad.et.tudelft.nl (J.P.M. van der Jagt)
References: <+rfjdnkwestes@netcom.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.admin.mbox.zip!sparky!uunet!mcsun!sun4nl!donau!dutecad.et.tudelft.nl!jeanpaul
Newsgroups: news.admin,news.software.b,news.software.nn
Sender: news@donau.et.tudelft.nl (UseNet News System)
Organization: Delft University of Technology, Dept. of Electrical Engineering
Lines: 68
Nntp-Posting-Host: dutecad.et.tudelft.nl