🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #84447

Re: best way to call slrnpull?

#84447
From: LinuxBear
Date: Mon, 17 Sep 2001 23:18
69 lines
3011 bytes
Phil Boutros wrote:
> On Mon, 17 Sep 2001 02:29:57 GMT, LinuxBear <vlpbgcys@news.videotron.ca> wrote:
>> What is the best way to call slrnpull so that a non-root user has access to
>> newsgroups? I put it in a root cron job to run every 15 minutes but I am not
>> always online, so I end up having many error messages in my root mail account.
> 
> 	How about a simple shell script?  Something like:
> 
> #v+
> #!/bin/bash
> 
> if [ -r /var/run/ppp0.pid ]; then
> # We assume that ppp0.pid is the file created when you have a PPP 
> # connection going...
> 
>         echo "Getting news..."
>         slrnpull --<options>
>         echo "That's all folks..."
>         exit 1
> 
> 
> else
>         echo "Sorry, no PPP connection..."
> 	exit 1
> #v-
> 
> 	I have a slightly longer version of this script myself.  What
> it does is the first part (with getting my email via fetchmail added)
> if the connection is established.
> 
> 	If I'm *not* online, the part after the else (in my longer
> script, not in this one) tries to go online.  It checks if it's online
> after a minute or so (to give time for the modem to connect via
> dialup).  If it is, it gets email and news messages as above.  If it's
> not, it waits 10 minutes and tries to go online again.  Repeat as
> necessary.
> 
> 	Let me know if you want that version (the longer one) too.
> 	
> 	Just running the above script from cron will just get news
> messages if you are online.
> 
> 
>> Can slrn be run in some sort of daemon mode that is somehow linked to the ppp
>> script?
> 
> 	Well, the easy way is to just add slrnpull to your
> /etc/ppp/ip-up script, or wherever else it may be on your system.
>  
> 
> Phil

Thanks very much Phil. I would love a copy of your other script


-- 

LinuxBear
db050870@yahoo.ca


       ___  
     {~._.~}
     _( Y )_
    (:_~*~_:)
     (_)-(_)

  	
Technical Details
Message-ID: <slrn9qcsmg.j2.vlpbgcys@localhost.localdomain>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!wesley.videotron.net!wagner.videotron.net.POSTED!vlpbgcys
References: <slrn9qao2r.2gv.vlpbgcys@localhost.localdomain> <slrn9qavdk.jj.philb@wolf14.nols.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9qcsmg.j2.vlpbgcys@localhost.localdomain>
Subject: Re: best way to call slrnpull?
Date: Mon, 17 Sep 2001 23:18:27 GMT
From: vlpbgcys@news.videotron.ca (LinuxBear)
References: <slrn9qao2r.2gv.vlpbgcys@localhost.localdomain> <slrn9qavdk.jj.philb@wolf14.nols.com>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sunqbc.risq.qc.ca!wesley.videotron.net!wagner.videotron.net.POSTED!vlpbgcys
Newsgroups: news.software.readers
Reply-To: LinuxBear@nowhere.com
X-newsgroup: news.software.readers
X-realname: Phil Boutros
User-Agent: slrn/0.9.6.3pl4 (Linux)
Lines: 68
NNTP-Posting-Host: 207.253.207.130
X-Complaints-To: abuse@videotron.ca
X-Trace: wagner.videotron.net 1000768707 207.253.207.130 (Mon, 17 Sep 2001 19:18:27 EDT)
NNTP-Posting-Date: Mon, 17 Sep 2001 19:18:27 EDT