From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46468 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: run agent in -batch mode reading a batch rc file instead of .gnus Date: Tue, 10 Sep 2002 01:11:56 -0700 Organization: Still searching... Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1031646134 9808 127.0.0.1 (10 Sep 2002 08:22:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 10 Sep 2002 08:22:14 +0000 (UTC) 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 17ogHl-0002Y2-00 for ; Tue, 10 Sep 2002 10:22:13 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17ogGz-0007hC-00; Tue, 10 Sep 2002 03:21:25 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 10 Sep 2002 03:22:01 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id DAA09598 for ; Tue, 10 Sep 2002 03:21:49 -0500 (CDT) Original-Received: (qmail 27917 invoked by alias); 10 Sep 2002 08:21:03 -0000 Original-Received: (qmail 27908 invoked from network); 10 Sep 2002 08:21:03 -0000 Original-Received: from mail.dslextreme.com (66.51.205.14) by gnus.org with SMTP; 10 Sep 2002 08:21:03 -0000 Original-Received: (qmail 18994 invoked from network); 10 Sep 2002 08:10:19 -0000 Original-Received: from adsl-66.51.210.228.dslextreme.com (HELO reader.local.lan) (66.51.210.228) by mail.dslextreme.com with SMTP; 10 Sep 2002 08:10:19 -0000 Original-Received: from reader.local.lan (localhost [127.0.0.1]) by reader.local.lan (8.12.3/8.12.3) with ESMTP id g8A8C6m3016320 for ; Tue, 10 Sep 2002 01:12:06 -0700 Original-Received: (from reader@localhost) by reader.local.lan (8.12.3/8.12.3/Submit) id g8A8C5cU016317; Tue, 10 Sep 2002 01:12:05 -0700 Original-To: ding@gnus.org Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:nfIUMBKyVCBJWGsXyMSe3t6C7bY= Posted-To: gnu.emacs.gnus Original-Lines: 20 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46468 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46468 The following message is a courtesy copy of an article that has been posted to gnu.emacs.gnus as well. How can I run gnus in batch mode and force it to read some other rc file instead of gnus. I want a different setup for this batch run. I know that if a file named ~/.gnus.el is present it will be read in preference to .gnus, which comes pretty close, but then the file needs deleting when batch is completed. Seems like a sloppy way to do it, there could be moments when the batch is running as webll as a live gnus. Maybe a conditional at the start of .gnus that knows if its a batch session reading .gnus. If batch is found then a redirect to some other file... Is that possible? The easiest would be if I could tell gnus not to read ~/.gnus, then I could just load what ever I wanted.