Thread View: news.software.readers
11 messages
11 total messages
Started by Troy Piggins
Tue, 14 Jun 2005 01:24
[slrn] slrnpull as cronjob
Author: Troy Piggins
Date: Tue, 14 Jun 2005 01:24
Date: Tue, 14 Jun 2005 01:24
62 lines
3324 bytes
3324 bytes
After years of using slrn (0.9.8.1), I finally tinkered with slrnpull on the weekend. So I compiled it in, added the entries in my .slrnrc [1], created the spool directories [2], put a slrnpull.conf in there [3], ran slrnpull as root, and it all went fine. I love the speed I can read and open groups now. I have 2 problems/questions (1) So I thought my next step would be to simply to add a task in root's crontab every, say, 15 mins to keep things up to date and to post my articles. For some reason that doesn't work, although running slrnpull manually as root does. Here is the error message from slrnpull's log, although it doesn't really detail what the problem was: 06/14/2005 09:46:00 slrnpull started. 06/14/2005 09:46:00 Reading /var/spool/news/slrnpull/slrnpull.conf 06/14/2005 09:46:00 Connecting to host localhost ... 06/14/2005 09:46:00 ***Unable to initialize server. 06/14/2005 09:46:00 A total of 0 bytes received, 0 bytes sent in 0 seconds. Any ideas? How do you set up slrnpull? (2) Problem number 2 - Originally I had set post_object "slrnpull", but that meant that my posts were only sent to the nntp server when slrnpull was run (ie every 15 mins). So I changed to set post_object "nntp" assuming that this would deliver directly. But my posts still just sit in /var/spool/news/slrnpull/out.going until slrnpull is run (manually at the moment because of problem no. 1). So how do I set it up so my posts go directly, but only pull down when the cronjob is run? Thanks. [1] - relevant entries from .slrnrc set server_object "spool" set post_object "nntp" 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 [2] [troy@armadillo:troy]$ ls -l /var/spool/news/slrnpull/ total 116 drwxr-xr-x 2 root root 4096 Jun 14 10:07 data -rw-r--r-- 1 root root 93174 Jun 14 11:16 log drwxr-xr-x 8 root root 4096 Jun 11 22:40 news drwxrwxrwt 3 root root 4096 Jun 14 10:34 out.going drwxrwxrwt 2 root root 4096 Jun 14 11:12 requests -rw-r--r-- 1 root root 2448 Jun 12 09:04 slrnpull.conf [3] - sample entries from slrnpull.conf default 500 0 0 news.software.readers alt.test -- T R O Y P I G G I N S e : usenet@piggo.com
Re: [slrn] slrnpull as cronjob
Author: F
Date: Tue, 14 Jun 2005 04:58
Date: Tue, 14 Jun 2005 04:58
42 lines
2672 bytes
2672 bytes
On 14 Jun 2005 01:24:10 GMT, Troy Piggins <usenet@piggo.com> wrote: >After years of using slrn (0.9.8.1), I finally tinkered with slrnpull on >the weekend. So I compiled it in, added the entries in my .slrnrc [1], >created the spool directories [2], put a slrnpull.conf in there [3], ran >slrnpull as root, and it all went fine. I love the speed I can read and >open groups now. > >I have 2 problems/questions > >(1) So I thought my next step would be to simply to add a task in root's >crontab every, say, 15 mins to keep things up to date and to post my >articles. For some reason that doesn't work, although running slrnpull >manually as root does. Here is the error message from slrnpull's log, >although it doesn't really detail what the problem was: > >06/14/2005 09:46:00 slrnpull started. >06/14/2005 09:46:00 Reading /var/spool/news/slrnpull/slrnpull.conf >06/14/2005 09:46:00 Connecting to host localhost ... >06/14/2005 09:46:00 ***Unable to initialize server. >06/14/2005 09:46:00 A total of 0 bytes received, 0 bytes sent in 0 >seconds. slrnpull -h news.server.name > >Any ideas? How do you set up slrnpull? > >(2) Problem number 2 - Originally I had set post_object "slrnpull", but >that meant that my posts were only sent to the nntp server when slrnpull >was run (ie every 15 mins). So I changed to set post_object "nntp" >assuming that this would deliver directly. But my posts still just sit >in /var/spool/news/slrnpull/out.going until slrnpull is run (manually at >the moment because of problem no. 1). > >So how do I set it up so my posts go directly, but only pull down when >the cronjob is run? You need to set up a hostname, I think the variable is NNTPSERVER=news.server.name in the .bashrc .bash_profile, /etc/profile, check the SLRN docs.
Re: [slrn] slrnpull as cronjob
Author: Troy Piggins
Date: Tue, 14 Jun 2005 05:32
Date: Tue, 14 Jun 2005 05:32
49 lines
3009 bytes
3009 bytes
* F wrote: > On 14 Jun 2005 01:24:10 GMT, Troy Piggins <usenet@piggo.com> wrote: > [snip] >>(1) So I thought my next step would be to simply to add a task in root's >>crontab every, say, 15 mins to keep things up to date and to post my >>articles. For some reason that doesn't work, although running slrnpull >>manually as root does. Here is the error message from slrnpull's log, >>although it doesn't really detail what the problem was: >> >>06/14/2005 09:46:00 slrnpull started. >>06/14/2005 09:46:00 Reading /var/spool/news/slrnpull/slrnpull.conf >>06/14/2005 09:46:00 Connecting to host localhost ... >>06/14/2005 09:46:00 ***Unable to initialize server. >>06/14/2005 09:46:00 A total of 0 bytes received, 0 bytes sent in 0 >>seconds. > > slrnpull -h news.server.name Ok. Will try that in root's crontab and see how it goes. I assume this will be my ISP's news server name? I have that set in root's .bash_profile in the NNTPSERVER variable, and understood that if the '-h' option was not used with slrnpull, it uses $NNTPSERVER by default - after all when I type 'slrnpull' on the commandline with no args it works. Nevertheless, I will use '-h' in crontab to test. [snip] >>(2) Problem number 2 - Originally I had set post_object "slrnpull", but >>that meant that my posts were only sent to the nntp server when slrnpull >>was run (ie every 15 mins). So I changed to set post_object "nntp" >>assuming that this would deliver directly. But my posts still just sit >>in /var/spool/news/slrnpull/out.going until slrnpull is run (manually at >>the moment because of problem no. 1). >> >>So how do I set it up so my posts go directly, but only pull down when >>the cronjob is run? > > You need to set up a hostname, I think the variable is > NNTPSERVER=news.server.name > in the .bashrc .bash_profile, /etc/profile, check the SLRN docs. Again, I do have that set as my IPS's nntp server in my (user=troy) .bash_profile. Still not working. Any other ideas? -- T R O Y P I G G I N S e : usenet@piggo.com
Part solved: [slrn] slrnpull as cronjob
Author: Troy Piggins
Date: Tue, 14 Jun 2005 11:45
Date: Tue, 14 Jun 2005 11:45
39 lines
2594 bytes
2594 bytes
* Troy Piggins wrote: > > I have 2 problems/questions > > (1) So I thought my next step would be to simply to add a task in root's > crontab every, say, 15 mins to keep things up to date and to post my > articles. For some reason that doesn't work, although running slrnpull > manually as root does. Here is the error message from slrnpull's log, > although it doesn't really detail what the problem was: > > 06/14/2005 09:46:00 slrnpull started. > 06/14/2005 09:46:00 Reading /var/spool/news/slrnpull/slrnpull.conf > 06/14/2005 09:46:00 Connecting to host localhost ... > 06/14/2005 09:46:00 ***Unable to initialize server. > 06/14/2005 09:46:00 A total of 0 bytes received, 0 bytes sent in 0 > seconds. Ok, I think this was solved by sourcing .bash_profile again after adding the NNTPSERVER entry for root. I thought I had already done that, but we all know what Thought did... > (2) Problem number 2 - Originally I had set post_object "slrnpull", but > that meant that my posts were only sent to the nntp server when slrnpull > was run (ie every 15 mins). So I changed to set post_object "nntp" > assuming that this would deliver directly. But my posts still just sit > in /var/spool/news/slrnpull/out.going until slrnpull is run (manually at > the moment because of problem no. 1). > > So how do I set it up so my posts go directly, but only pull down when > the cronjob is run? This one is still not solved. With slrnpull running ok at every 15 mins, at least my posts get sent regularly, just not directly. Anyone else had this problem, or offer a solution? -- T R O Y P I G G I N S e : usenet@piggo.com
Re: Part solved: [slrn] slrnpull as cronjob
Author: Toby
Date: Tue, 14 Jun 2005 12:20
Date: Tue, 14 Jun 2005 12:20
44 lines
2978 bytes
2978 bytes
On 2005-06-14, Troy Piggins <usenet@piggo.com> wrote: > * Troy Piggins wrote: >> >> I have 2 problems/questions >> >> (1) So I thought my next step would be to simply to add a task in root's >> crontab every, say, 15 mins to keep things up to date and to post my >> articles. For some reason that doesn't work, although running slrnpull >> manually as root does. Here is the error message from slrnpull's log, >> although it doesn't really detail what the problem was: >> >> 06/14/2005 09:46:00 slrnpull started. >> 06/14/2005 09:46:00 Reading /var/spool/news/slrnpull/slrnpull.conf >> 06/14/2005 09:46:00 Connecting to host localhost ... >> 06/14/2005 09:46:00 ***Unable to initialize server. >> 06/14/2005 09:46:00 A total of 0 bytes received, 0 bytes sent in 0 >> seconds. > > Ok, I think this was solved by sourcing .bash_profile again after adding > the NNTPSERVER entry for root. I thought I had already done that, but > we all know what Thought did... > >> (2) Problem number 2 - Originally I had set post_object "slrnpull", but >> that meant that my posts were only sent to the nntp server when slrnpull >> was run (ie every 15 mins). So I changed to set post_object "nntp" >> assuming that this would deliver directly. But my posts still just sit >> in /var/spool/news/slrnpull/out.going until slrnpull is run (manually at >> the moment because of problem no. 1). >> >> So how do I set it up so my posts go directly, but only pull down when >> the cronjob is run? > > This one is still not solved. With slrnpull running ok at every 15 > mins, at least my posts get sent regularly, just not directly. > > Anyone else had this problem, or offer a solution? You could try leafnode instead of slrnpull? -- Toby. Add the word afiduluminag to the subject field to circumvent my email filters. Ignore any mail delivery error.
Re: Part solved: [slrn] slrnpull as cronjob
Author: SINNER
Date: Tue, 14 Jun 2005 12:45
Date: Tue, 14 Jun 2005 12:45
16 lines
1673 bytes
1673 bytes
* Toby wrote in news.software.readers: > On 2005-06-14, Troy Piggins <usenet@piggo.com> wrote: [...] >> Anyone else had this problem, or offer a solution? > You could try leafnode instead of slrnpull? While I have never used slrnpull, I will second this. -- David QOTD: "It was so cold last winter that I saw a lawyer with his hands in his own pockets."
Re: Part solved: [slrn] slrnpull as cronjob
Author: Troy Piggins
Date: Tue, 14 Jun 2005 13:00
Date: Tue, 14 Jun 2005 13:00
29 lines
2153 bytes
2153 bytes
* Toby wrote: > On 2005-06-14, Troy Piggins <usenet@piggo.com> wrote: [snip] >>> (2) Problem number 2 - Originally I had set post_object "slrnpull", >>> but that meant that my posts were only sent to the nntp server when >>> slrnpull was run (ie every 15 mins). So I changed to set >>> post_object "nntp" assuming that this would deliver directly. But >>> my posts still just sit in /var/spool/news/slrnpull/out.going until >>> slrnpull is run (manually at the moment because of problem no. 1). >>> >>> So how do I set it up so my posts go directly, but only pull down >>> when the cronjob is run? >> >> This one is still not solved. With slrnpull running ok at every 15 >> mins, at least my posts get sent regularly, just not directly. >> >> Anyone else had this problem, or offer a solution? > > You could try leafnode instead of slrnpull? Yeah, I could try it. It's just that I would prefer to keep with slrn - but thanks anyway. I did ask for a solution, and that could be one. I will keep it in mind when all other avenues are exhausted. -- T R O Y P I G G I N S e : usenet@piggo.com
Re: Part solved: [slrn] slrnpull as cronjob
Author: W. Citoan
Date: Tue, 14 Jun 2005 23:04
Date: Tue, 14 Jun 2005 23:04
29 lines
2275 bytes
2275 bytes
Troy Piggins wrote: > * Troy Piggins wrote: > > > > (2) Problem number 2 - Originally I had set post_object "slrnpull", > > but that meant that my posts were only sent to the nntp server when > > slrnpull was run (ie every 15 mins). So I changed to set > > post_object "nntp" assuming that this would deliver directly. But > > my posts still just sit in /var/spool/news/slrnpull/out.going until > > slrnpull is run (manually at the moment because of problem no. 1). > > > > So how do I set it up so my posts go directly, but only pull down > > when the cronjob is run? > > This one is still not solved. With slrnpull running ok at every 15 > mins, at least my posts get sent regularly, just not directly. > > Anyone else had this problem, or offer a solution? 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"). - W. Citoan -- I disapprove of what you say, but I will defend to the death your right to say it. -- Voltaire
Re: Part solved: [slrn] slrnpull as cronjob
Author: Troy Piggins
Date: Tue, 14 Jun 2005 23:45
Date: Tue, 14 Jun 2005 23:45
66 lines
3617 bytes
3617 bytes
* W. Citoan wrote: > Troy Piggins wrote: >> * Troy Piggins wrote: >> > >> > (2) Problem number 2 - Originally I had set post_object "slrnpull", >> > but that meant that my posts were only sent to the nntp server when >> > slrnpull was run (ie every 15 mins). So I changed to set >> > post_object "nntp" assuming that this would deliver directly. But >> > my posts still just sit in /var/spool/news/slrnpull/out.going until >> > slrnpull is run (manually at the moment because of problem no. 1). >> > >> > So how do I set it up so my posts go directly, but only pull down >> > when the cronjob is run? >> >> This one is still not solved. With slrnpull running ok at every 15 >> mins, at least my posts get sent regularly, just not directly. >> >> Anyone else had this problem, or offer a solution? > > 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: - do you run slrnpull as a cron job? how often? as root, or as user? - 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? - 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. By the way, root's cron entry looks like this: 1,16,31,46 * * * * /usr/local/bin/slrnpull -h freenews.iinet.net.au and I just run 'slrn -n' as a user alias, no other options on commandline. 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 Let me know if there is anything else you need to know. -- T R O Y P I G G I N S e : usenet@piggo.com
Re: Part solved: [slrn] slrnpull as cronjob
Author: 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
Re: Part solved: [slrn] slrnpull as cronjob
Author: Troy Piggins
Date: Wed, 15 Jun 2005 03:47
Date: Wed, 15 Jun 2005 03:47
62 lines
3262 bytes
3262 bytes
* W. Citoan wrote: > Troy Piggins wrote: [snip] > 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... No problem. [snip] > 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. Nice, might try that myself. >> 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. Aah, I wondered about that. So if I don't use the '-n' option, and add more groups in the slrnpull.conf, slrn will see them. That makes sense and I will change that. [snip] >> "/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. Doh. I don't know why, but I missed that. I am sure I added it when testing and using slrnpull to post, and because I didn't comment in my .slrnrc what that did, I didn't remove it when I went back to nntp posting. Hopefully this post will get sent directly. Thanks for all of your help, mate. -- T R O Y P I G G I N S - a very happy slrn user e : usenet@piggo.com
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