Thread View: news.software.readers
1 messages
1 total messages
Started by root of all evil
Sun, 12 Jul 1998 00:00
getnews slrnpull
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads