From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86717 Path: news.gmane.org!not-for-mail From: Lars Huttar Newsgroups: gmane.comp.tex.context Subject: Re: suppressing console output Date: Wed, 19 Mar 2014 12:37:27 -0400 Message-ID: <5329C7C7.2080301@sil.org> References: <5329A6E9.7060608@sil.org> <5329B31D.9040806@wxs.nl> <5329B8CA.4060709@wxs.nl> <5329B9C4.4090301@sil.org> <5329BBA9.3050208@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1395247056 7839 80.91.229.3 (19 Mar 2014 16:37:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Mar 2014 16:37:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 19 17:37:47 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WQJUx-000362-17 for gctc-ntg-context-518@m.gmane.org; Wed, 19 Mar 2014 17:37:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 26BD0101F3; Wed, 19 Mar 2014 17:37:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id f7ikmlTtDuAX; Wed, 19 Mar 2014 17:37:43 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A2C9A101E9; Wed, 19 Mar 2014 17:37:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DBF6101E9 for ; Wed, 19 Mar 2014 17:37:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LMYkOS83M8Vk for ; Wed, 19 Mar 2014 17:37:40 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id D8D76101E1 for ; Wed, 19 Mar 2014 17:37:30 +0100 (CET) Original-Received: from mail-yh0-f52.google.com (mail-yh0-f52.google.com [209.85.213.52]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2JGbTfp026046 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 19 Mar 2014 17:37:30 +0100 Original-Received: by mail-yh0-f52.google.com with SMTP id c41so8780064yho.11 for ; Wed, 19 Mar 2014 09:37:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=XyAzJV36oIQRn9shLMLWCdZPJpJGk52ipuHHVVNcs0U=; b=gG+3VDtvtMRu1+l1w75kyfA6zYcTcVJSV/QfuLQhzzACP1lKWwIpmyJWu/GukTvydC NZd3wLku4T1ULV0fE+p6E4xR5lynRe90IUghlM98zS/yBag6gwZuPlUZKzOnT1VBoZKg SDjlRmo/eBW1UsmtzdWIb9x4xbtKlEE18QgonQlZGYb9Ie7enQarzlrRiSWgVmhVVXLV rHmgLtmKe9eK9V1Dfs2EnmbS2lcyOukl43Elx/joGt9pVQcO3KuorsYKzNBAaZhNRypX sJRp6Gnqy9CJVXikz0fTReya8iBXFMBUsWE5f78bxd9XL7vXELwhJfk5R5RXcTcVOKeu R+/w== X-Gm-Message-State: ALoCoQktvfdxsg2+j11V+uOmyshkYYRJizgx8OHbBS6aEXhq0MqakAc89gFLPpkyKHxekMj/2Iz3 X-Received: by 10.236.157.167 with SMTP id o27mr4100155yhk.127.1395247048602; Wed, 19 Mar 2014 09:37:28 -0700 (PDT) Original-Received: from [172.22.10.178] ([162.40.29.3]) by mx.google.com with ESMTPSA id q9sm44289549yhk.16.2014.03.19.09.37.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 19 Mar 2014 09:37:28 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: <5329BBA9.3050208@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=209.85.213.52; country=US; region=California; city=Mountain View; latitude=37.4192; longitude=-122.0574; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NLDsBtls - 58d32b365c9d - 20140319 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86717 Archived-At: On 3/19/2014 11:45 AM, Hans Hagen wrote: > On 3/19/2014 4:37 PM, Lars Huttar wrote: > >> In our case these amount to pages and pages of output, because our >> document consists of many many files that reference each other >> (including images). So I would vote a big +1 for that change. > > doesn't --batchmode help then? My mistake... --batchmode does seem to get rid of the file open/close messages. (Until I learned that --noconsole takes an argument, there was still so much output that it was hard to see a difference in output due to --batchmode.) Unfortunately, --batchmode also seems to suppresses printing fatal error messages and stopping on them (as its --help documentation suggests). So when the tex code has an error, the compilation continues to the end (wasting significant time) and then exits with a failure status code, but no indication of where the error occurred. So --batchmode doesn't really seem to be an option for us. Unless we use batchmode most of the time and then rerun without batchmode after an error occurs. I tried having the build script discard stdout from the context process (with --noconsole=tmp.log but without --batchmode). But apparently, the error output of context goes to stdout instead of stderr: Context stops on a fatal error but the error message and prompt are lost, and the process hangs, waiting for the user to respond to a message they can't see. Lars ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________