From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Starting with batch-mode Date: Tue, 30 Sep 2008 00:22:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6a594dba-ef74-48a2-83a2-1f7d7a80f774@2g2000hsn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1222760445 805 80.91.229.12 (30 Sep 2008 07:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 07:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 30 09:41:44 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KkZrZ-000193-Uc for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2008 09:41:42 +0200 Original-Received: from localhost ([127.0.0.1]:36810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkZqX-0008RA-1d for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Sep 2008 03:40:37 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!2g2000hsn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: 80.79.97.145 Original-X-Trace: posting.google.com 1222759351 31421 127.0.0.1 (30 Sep 2008 07:22:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 30 Sep 2008 07:22:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 2g2000hsn.googlegroups.com; posting-host=80.79.97.145; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 proxy-25:8080 (squid/2.5.STABLE8) Original-Xref: news.stanford.edu gnu.emacs.help:162879 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:58220 Archived-At: I am starting to work with batch-mode in Emacs. I have a test.el (nothing fancy) with: (defun testing () (princ "Dit is een test\n") ) I call this with: time emacs -batch -nw -l ~/test.el --eval="(testing)" This works, but generates a lot of output on stderr. I could get rid of this with: time emacs -batch -nw -l ~/test.el --eval="(testing)" 2>/dev/null But then I can not use stderr in my script. Is there a way around this?