Article View: news.software.readers
Article #167804Re: Part solved: [slrn] slrnpull as cronjob
From: W. Citoan
Date: Wed, 15 Jun 2005 01:54
Date: Wed, 15 Jun 2005 01:54
111 lines
5258 bytes
5258 bytes
Troy Piggins wrote: > * W. Citoan wrote: > > > > This is how I run it (slrnpull for downloading, slrn for posting) and > > it has always worked for me (Linux and Windows). Since you say your > > posts are in the slrnpull outgoing directory, my guess is that you > > still have your .slrnrc set to use slrnpull for outgoing posts. Make > > sure it's set to nntp instead of spool (i.e. set post_object "nntp"). > > Yes - that's what I am trying to achieve your setup. I do have > set post_object "nntp" (see my original post and [1] below), but for > some reason they are still going to the spool out.going. I have a > couple of questions for you: Sorry, I read your post, thought about it for awhile, then responded. The post_object was clearly spelled out, I just missed it. I believe the fix is at the end, but I'll answer your questions first... > - do you run slrnpull as a cron job? how often? as root, or as user? Well, I'm running Windows these days. I haven't bothered to set up an automatic run. I just have a batch file I manually run periodically. I keep meaning to automate it, but never get around to it. When I ran Linux, I had the ppp login (I'm on dialup) kick off a script that would sleep and then loop. When I quit dial up, the script would be automatically killed. This avoided slrnpull running when I wasn't on-line (I could have left it in cron and just checked). I ran it as user and it would execute every 15 minutes. > - have you looked at your /xxx/spool/news/xxx/out.going between cron > jobs to see if your posts sit there? or you are certain they get > posted directly/immediately with nntp? I'm certain they post directly. I can see slrn status messages (at the bottom of the window) saying it's connecting to the server, authorizing the connection, posting, and then post successful. Also, the next time I run slrnpull, my message is downloaded. > - what do you set root's NNTPSERVER to, and your user's NNTPSERVER to? > are they both the same? mine are both set to freenews.iinet.net.au, > which is my ISP's news server. I only set it up as user. > By the way, root's cron entry looks like this: > > 1,16,31,46 * * * * /usr/local/bin/slrnpull -h freenews.iinet.net.au This is my batch file: @echo off set SLRNPULL_ROOT=f:\home\newsspool set NNTPSERVER=news.maxinter.net set LOGFILE=%SLRNPULL_ROOT%\log set KILLLOG=%SLRNPULL_ROOT%\log-kill f:\home\slrn\slrnpull --logfile %LOGFILE% --kill-score -9000 --kill-log %KILLLOG% pause I keep log files in case something goes wrong. I also take advantage of the fact slrn and slrnpull can share the same score file. My slrnrc has scorefile set to the one in my slrnpull directory. If I kill something, slrnpull won't even bother downloading it in the first place. > and I just run 'slrn -n' as a user alias, no other options on > commandline. I don't use the "-n" since I only have a small number of groups locally. It doesn't take any longer to start-up and it allows me to add groups to my slrnpull.conf and have them show up in slrn without starting it differently. > Thanks WC. > > [1] relevant entries from my .slrnrc: > > server "freenews.iinet.net.au" ".newsrc-iinet" > set server_object "spool" > set post_object "nntp" > set generate_message_id 1 > posting_host "piggo.com" > set read_active 1 > set unsubscribe_new_groups 1 > set spool_inn_root "/var/spool/news/slrnpull" > set spool_root "/var/spool/news/slrnpull/news" > set spool_nov_root "/var/spool/news/slrnpull/news" > set use_slrnpull 1 This last one is probably your problem. From the slrn manual: 6.135 use_slrnpull Type: integer Default: 0 If non-zero, slrn will spool outgoing postings to let slrnpull send them instead of contacting the newsserver itself. The same effect can be achieved by setting post_object to "slrnpull". By setting it to 1, your telling slrn to use the spool. I'm not sure why there's two options for the same thing... Looking at my slrnrc, I don't have a use_slrnpull option so I think you should just delete it. - W. Citoan -- His mind his kingdom, and his will his law. -- Cowper
Technical Details
Message-ID:
<slrndav2j2.36c.wcitoan@wcitoan-via.supernews.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!sn-xit-04!sn-xit-12!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<slrndasce1.cia.usenet@piggo.com> <slrndatg8r.f04.usenet@piggo.com> <slrndauok3.3sc.wcitoan@wcitoan-via.supernews.com> <slrndauq6d.fod.usenet@piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <slrndav2j2.36c.wcitoan@wcitoan-via.supernews.com> Subject: Re: Part solved: [slrn] slrnpull as cronjob Date: Wed, 15 Jun 2005 01:54:53 -0000 From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com> References: <slrndasce1.cia.usenet@piggo.com> <slrndatg8r.f04.usenet@piggo.com> <slrndauok3.3sc.wcitoan@wcitoan-via.supernews.com> <slrndauq6d.fod.usenet@piggo.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!sn-xit-04!sn-xit-12!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Newsgroups: news.software.readers Organization: Posted via Supernews, http://www.supernews.com User-Agent: slrn/0.9.7.4 (Win32) X-Complaints-To: abuse@supernews.com Lines: 111