From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62450 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: calling ConTeXt as a background process Date: Fri, 8 Oct 2010 11:27:52 +0200 Message-ID: References: <4CAD8800.2010909@elvenkind.com> <4CAD8D8A.6040802@elvenkind.com> <5A1428AE-DA31-4120-9B35-102E7B42D8AC@fiee.net> <90F33E64-7BB9-4DEB-9E89-A4FC99169401@awi.de> <48470924-D44D-4010-B895-12EA664C4D90@fiee.net> <4CAE0E7B.4000307@elvenkind.com> <2932BD8B-6EC7-4D37-A816-467484051DE8@fiee.net> <155FF918-2AC1-4C82-B5C1-6EF3BE120FB5@gundla.ch> <62D293EE-F414-4710-B165-365EC9E0795A@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1286530084 15207 80.91.229.12 (8 Oct 2010 09:28:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Oct 2010 09:28:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 08 11:28:03 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P49FC-0004Li-99 for gctc-ntg-context-518@m.gmane.org; Fri, 08 Oct 2010 11:28:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDAA8CA764; Fri, 8 Oct 2010 11:28:01 +0200 (CEST) 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 U3LEKSMW5w5r; Fri, 8 Oct 2010 11:27:58 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBD49CA74E; Fri, 8 Oct 2010 11:27:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7CEFCA749 for ; Fri, 8 Oct 2010 11:27:56 +0200 (CEST) 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 5VqoZspV+Q1D for ; Fri, 8 Oct 2010 11:27:54 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id C8EB2CA73F for ; Fri, 8 Oct 2010 11:27:54 +0200 (CEST) Original-Received: from mail-qy0-f169.google.com (mail-qy0-f169.google.com [209.85.216.169]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o989HCW6016049 for ; Fri, 8 Oct 2010 11:17:13 +0200 Original-Received: by qyk31 with SMTP id 31so26258qyk.14 for ; Fri, 08 Oct 2010 02:27:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=nIyVyDCvJMQgnZSXuxCFH79Hy6CgsTqOANwgBTNBzhA=; b=H1yki+tT7EQnpXWQCXm+dhs/gDJK3IJaNeWsuKHqu8V6Qe/wKp7trHJmDKZuDL75Ze TFoTYb1uU9BRMp6V4C5dQTa+i4diSIceW7vNtqkP/yLEm8qpGuhi0kPq+C3xKt9vMwGa 9bJ+/0Ep38Mt66+9IEz2AaCG8XT0yD+C5EgLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fsgAaaW7ddH39pyE6DNovb1U66auAHbeiVSsXq7xETPEXNAVbZF0VV0eL9Y4qQlBu2 HuVgnxfFzobfZH0YB2UYoZc484xbAuANYn5OjWY3YD7WKIKorYPsPEbEPjJlFa5aMN8d zLdNayhEj6W+ZBSz+dXCC9IZKQcXdTRYmqP1c= Original-Received: by 10.224.177.137 with SMTP id bi9mr1322182qab.92.1286530073014; Fri, 08 Oct 2010 02:27:53 -0700 (PDT) Original-Received: by 10.229.251.193 with HTTP; Fri, 8 Oct 2010 02:27:52 -0700 (PDT) In-Reply-To: <62D293EE-F414-4710-B165-365EC9E0795A@fiee.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; 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: 0aDg9hdoo - bf798f5b3b20 - 20101008 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:62450 Archived-At: On Fri, Oct 8, 2010 at 11:21 AM, Henning Hraban Ramm wrote: > Am 2010-10-08 um 10:12 schrieb Patrick Gundlach: > >> I don't think it's in the LuaTeX area, for LuaTeX is just a regular >> process. > > Hm, I suspect it might be some system call inside LuaTeX that is blocked or > the like. > >> I have to admit that I have run into similar problems with different >> software I tried to run from a "server process" (whatever this means) and it >> always took me some time to get it right. At the end it was aways clear to >> me why it wouldn't run (but I can't remember anymore, since it is many years >> ago). So I suggest to replace the LuaTeX call with different other software >> and see where it breaks. Use software that reads STDIN, that writes to >> STDOUT/STDERR and alike and see if they are ok. > > A simple case like > python -c "print 'Hello'" > works ok. > I tried shell commands and simple tools (echo, set, date, touch) before, and > strace works, too. > > Even "texlua --help" works, so it's not texlua generally. > > texlua --script context --batchmode --once hello > gives: "Script file context not found" > (at least a usable error message, nothing hangs) > The same with > /var/opt/context/tex/setuptex && texlua --script context --batchmode --once > hello I use something like this os.system("""bash -c 'cd /opt/luatex/minimals-new/tex ; source setuptex ; echo $PATH;cd "%(jobpath)s" && context --batch "%(filetex)s" 2>/dev/null 1>/dev/null'""" %kv) -- luigi ___________________________________________________________________________________ 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 ___________________________________________________________________________________