🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #42122

slrnpull script

#42122
From: 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

Technical Details
Message-ID: <slrn6qpehu.90.charliek@charliek.nccoast.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.ppp.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn6qpehu.90.charliek@charliek.nccoast.net>
Subject: slrnpull script
Date: Thu, 16 Jul 1998 00:00:00 +0000
From: charliek@localhost.localdomain (charliek)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.ppp.mbox.zip!not-for-mail
X-Deja-AN: 371881568
Followup-To: getnews slrnpull
Summary: 2nd attempt to get assistance for script to dl newsgroups
Organization: Vnet Internet Access
Keywords: ppp-script,getnews,slrnpull
NNTP-Posting-Date: Wed, 15 Jul 1998 22:13:50 EDT
Newsgroups: news.software.readers,comp.protocols.ppp