🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by charliek Thu, 16 Jul 1998 00:00
slrnpull script
#42122
Author: charliek
Date: Thu, 16 Jul 1998 00:00
63 lines
2487 bytes
This is my second attempt to post a request for assistance. Is it getting
out? Here is additional info: slrn0.9.3.2, slackware 3.2, k 2.0.29,
AMD K5 cpu, 32M ram, pppd 2.2. Original post w/o headers below:

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






-- 
|---|
| 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