From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53302 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: How to make gnus read something besides .gnus in batch mode Date: Tue, 01 Jul 2003 07:17:43 -0700 Organization: Still searching... Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057074933 2833 80.91.224.249 (1 Jul 2003 15:55:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2003 15:55:33 +0000 (UTC) Original-X-From: ding-owner+M1846@lists.math.uh.edu Tue Jul 01 17:55:28 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19XNTc-0000j6-00 for ; Tue, 01 Jul 2003 17:55:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19XNTa-0000Kq-00; Tue, 01 Jul 2003 10:55:26 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19XNTS-0000Ki-00 for ding@lists.math.uh.edu; Tue, 01 Jul 2003 10:55:18 -0500 Original-Received: (qmail 51106 invoked by alias); 1 Jul 2003 15:55:17 -0000 Original-Received: (qmail 51101 invoked from network); 1 Jul 2003 15:55:17 -0000 Original-Received: from main.gmane.org (80.91.224.249) by sclp3.sclp.com with SMTP; 1 Jul 2003 15:55:17 -0000 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19XNSH-0000ZD-00 for ; Tue, 01 Jul 2003 17:54:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19XNRA-0000RG-00 for ; Tue, 01 Jul 2003 17:52:56 +0200 Original-Lines: 43 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:6uEOd2T/m7nEABIQHl4+AcAVSvs= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53302 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53302 Harry Putnam writes: > Even with the kind help I've gotten on this, I'm still having > problems with it. I think the general mechanism is sound but have > trouble figuring out why it fails, or partially fails. It turned out to be a timing problem. Gnus was getting invoked before it knew which `gnus/lisp' to use and reverting to 5.9.0. I found by loading this code a little sooner before gnus is called: (add-to-list 'load-path "/usr/local/gnus/lisp") (setq gnus-init-file "/tmp/my_gnus_init.el") Fixed it all up. Seems quite logical now but wasn't apparent what was happening until I put this: (message gnus-version) in the single init file. One final problem remains: With this batch command running from cron: emacs -q -no-site-file -batch -l $my_gnus_el \ -f gnus-agent-batch And the first few lines of $my_gnus.el: (add-to-list 'load-path "/usr/local/gnus/lisp") (setq gnus-init-file "/tmp/my_gnus_init.el") (load-library "gnus") (message gnus-version) [...] With that command line.. and init file, the code actually gets loaded twice, but doesn't seem to hurt anything. And the right targets are known in time. The remaining promblem is that if I have closed gnus down for a time and this batch job is run in the meantime. When I start gnus, it finds a dribble file and asks if it should load that. I'm pretty sure there is a line of code that will cause the batch job to save everthing so that won't happen, but not sure what it would be.