Article View: news.software.readers
Article #42061getnews slrnpull
From: root of all evil
Date: Sun, 12 Jul 1998 00:00
Date: Sun, 12 Jul 1998 00:00
49 lines
2145 bytes
2145 bytes
I had to modify the John C. Davis $slrnpull cron file to use it as a shell script to download newsgroups at *random* times when my box is up. The 'sleep 60' was needed to allow a ISP connection to be completed before the $slrnpull command started. Now there is an excessive delay ;-((. As you can tell, I'm not an experienced shell programmer ;-). There must be a better way! Help, please. TIA, charliek -------------------------- getnews --------------------------- #!/bin/sh # I run this file from cron every night to pull a few newsgroups from my # news server. It does the following: # # 1. Runs slrnpull in expire mode to expire old articles # 2. Starts up ppp via a ppp-on script (not provided) # 3. Runs slrnpull to grab articles from the server # 4. Turns off ppp via a ppp-off script (not provided) # Modified by cck 2/22/98 # renamed getnews and put in /usr/sbin # Configuration variables. Change these!!! dir=/var/spool/slrnpull server=news.nccoast.net slrnpull=/usr/local/bin/slrnpull #---------------------------------------------------------------------------- # Before getting new articles, perform expiration. $slrnpull -d $dir --expire wait if /usr/sbin/ppp-on; then sleep 60 $slrnpull -d $dir -h $server /usr/sbin/ppp-off else exit 1 fi ------------------------------------------------ -- |---| | c | C-squared cck charliek |---| charliek@nccoast.net
Technical Details
Message-ID:
<slrn6qeuva.67.charliek@charliek.nccoast.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn6qeuva.67.charliek@charliek.nccoast.net> Subject: getnews slrnpull Date: Sun, 12 Jul 1998 00:00:00 +0000 From: charliek@localhost.localdomain (root of all evil) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 370837403 Summary: cron file modified for shell script Organization: Vnet Internet Access Keywords: slrnpull, John C. Davis, script Reply-To: charliek@nccoast.net NNTP-Posting-Date: Sun, 12 Jul 1998 19:40:37 EDT Newsgroups: news.software.readers