From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62432 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: calling ConTeXt as a background process Date: Thu, 7 Oct 2010 17:55:31 +0200 Message-ID: <48470924-D44D-4010-B895-12EA664C4D90@fiee.net> References: <4CAD8800.2010909@elvenkind.com> <4CAD8D8A.6040802@elvenkind.com> <5A1428AE-DA31-4120-9B35-102E7B42D8AC@fiee.net> <90F33E64-7BB9-4DEB-9E89-A4FC99169401@awi.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1286466969 17217 80.91.229.12 (7 Oct 2010 15:56:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 7 Oct 2010 15:56:09 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 07 17:55:50 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 1P3sow-0001wR-4A for gctc-ntg-context-518@m.gmane.org; Thu, 07 Oct 2010 17:55:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9660DCA721; Thu, 7 Oct 2010 17:55:49 +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 SzDL1uH-5sow; Thu, 7 Oct 2010 17:55:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C77FCA709; Thu, 7 Oct 2010 17:55:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94070CA709 for ; Thu, 7 Oct 2010 17:55:45 +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 Rd15zdUGlg-9 for ; Thu, 7 Oct 2010 17:55:34 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 24590CA707 for ; Thu, 7 Oct 2010 17:55:34 +0200 (CEST) Original-Received: from turan.fiee.net (turan.fiee.net [87.230.77.106]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o97FtXfT014008 for ; Thu, 7 Oct 2010 17:55:33 +0200 X-No-Auth: unauthenticated sender Original-Received: from turan.fiee.net (lvps87-230-77-106.dedicated.hosteurope.de [127.0.0.1]) by turan.fiee.net (Postfix) with ESMTP id 842012E144008 for ; Thu, 7 Oct 2010 17:55:32 +0200 (CEST) Original-Received: from [10.128.9.9] (89-117.77-83.cust.bluewin.ch [83.77.117.89]) by turan.fiee.net (Postfix) with ESMTP for ; Thu, 7 Oct 2010 17:55:32 +0200 (CEST) In-Reply-To: <90F33E64-7BB9-4DEB-9E89-A4FC99169401@awi.de> X-Mailer: Apple Mail (2.936) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=87.230.77.106; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xDfPTxa6 - 139ff91556e3 - 20101007 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:62432 Archived-At: Am 2010-10-07 um 12:54 schrieb Florian Wobbe: > On Oct 7, 2010, at 12:19 , Henning Hraban Ramm wrote: > >> Am 2010-10-07 um 11:06 schrieb Taco Hoekwater: >>>> Of course, prd_paket.tex is my input file. But that's there. >>> >>> Your shell quotes were off. It is looking for >>> >>> "./prd_paket --batchmode --once.tex" >> >> Ok, but it doesn't work with any other call of luatex - I also >> tried to start another shell script that calls luatex, but it hangs >> in the same manner. If I kill the luatex process, further commands >> work. > > could you send me the calling shell script along with all necessary > files to run the context batch? or supply a minimal example instead > of prd_paket.tex. Hi Florian, it doesn't depend on the tex file, it's the same with \starttext Hello World! \stoptext It also doesn't depend on context options (--batchmode etc.) And it doesn't seem to depend on the way of calling it from Python/ Django: - directly with subprocess.Popen (several options), subprocess.call, subprocess.check_call - indirectly via shell script (that contains just the context call) - with context or mtxrun (didn't try texlua directly yet) - with setuptex or setting TEXROOT and TEXMFOS directly (in the environment for the subprocess call) I can imagine that it has something to do with SElinux settings, didn't dive in that yet. I can call context manually as the same user that's running the server process with all the options. It also works on my test system (osx-intel) with Django's dev server, just not on my Ubuntu server (linux-64). Despairing greetlings, Hraban ___________________________________________________________________________________ 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 ___________________________________________________________________________________