From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85904 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Feature Request: Set Output Directory Date: Sun, 12 Jan 2014 19:24:18 -0800 Message-ID: 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 1389601419 4511 80.91.229.3 (13 Jan 2014 08:23:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jan 2014 08:23:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 13 09:23: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 1W2coD-0001FZ-Dm for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jan 2014 09:23:45 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A0A51101DE; Mon, 13 Jan 2014 09:23:44 +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 ViUu+EvKc4Zv; Mon, 13 Jan 2014 09:23:43 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 20293101E2; Mon, 13 Jan 2014 09:23:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F170101E2 for ; Mon, 13 Jan 2014 04:24:23 +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 WyULT6jWn9HT for ; Mon, 13 Jan 2014 04:24:21 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id DE54C101DE for ; Mon, 13 Jan 2014 04:24:20 +0100 (CET) Original-Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0D3OHNF031785 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 13 Jan 2014 04:24:19 +0100 Original-Received: by mail-ie0-f171.google.com with SMTP id to1so3368114ieb.30 for ; Sun, 12 Jan 2014 19:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=/fiPZyoIYeiJXanKgmSkNHzayx6eJmma3HrI3ZkUYN8=; b=R/jvElU5MmLrwDk+Qf9tdHmhOlWC/WJwlAOqQw53xj66Eyq+zic1mxea9/wX22XAM/ K2+I5voQ8XhrJtchgzUyk7Fy9vuVcwuGq27At0GOtV/OAc7onuMEgHx66ltIjIBOp5oN +wmRX8XdVRanJlrtuf3vKSjbJKGcSjNBFcHQtnz/pEDpN+iYgkyLn3B4mRBlGkhzYTme E1nXQEeoal3YiPGmEnsX/cy0kwDOgQ6R87G7AvU2erH6KxucphhqnmVuVURzIcNPTHqF mxPcynHm6UAtvrXTO3OpuDqPAAcxw//RPf1uMsFlg2iS4QVU2KnaDcqAV6RNMnMMSPRI tPvA== X-Received: by 10.50.66.208 with SMTP id h16mr17323243igt.0.1389583458126; Sun, 12 Jan 2014 19:24:18 -0800 (PST) Original-Received: by 10.42.84.195 with HTTP; Sun, 12 Jan 2014 19:24:18 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::22b; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Ldfoi0X - 17b1986d8810 - 20140113 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-Mailman-Approved-At: Mon, 13 Jan 2014 09:23:42 +0100 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:85904 Archived-At: Hi, Summary: If the --result parameter includes a path then ConTeXt should assume that that directory is writable thus read/write its temporary flies at that location instead of the current working directory (CWD). Consider the following three accounts: - ConTeXt installation account (e.g., "context") - Web server account (e.g., "web") - Application account (e.g., "app") ConTeXt is run using the web server account. The web server's CWD is set to the application directory. For security reasons, the "web" account may not create files in the "app" account. When ConTeXt is called by the "web" account, the CWD is an "app" account subdirectory. This subdirectory contains scores of .tex input files that control various themes for the final rendered document. Many different users, through this web-based application, create different content .tex files. I would like to run context as the web user within the app directory, where the input .tex files are located; effectively, as the "web" account, this would look like: cd /home/app/public_html/book/context source /home/context/bin/context/tex/setuptex /home/context/bin/context/tex/texmf-linux-64/bin/context /home/web/users/1/book.tex --result=/home/web/users/1/book.pdf Since the "web" account cannot write to the "app" directory, this causes the following error: ! I can't write on file `book.log'. The following is also not possible as the "web" account: cd /home/web/users/1/ source /home/context/bin/context/tex/setuptex /home/context/bin/context/tex/texmf-linux-64/bin/context book.tex This fails because the book.tex file includes files that are in the "app" directory, which cannot be found. Since the "book.tex" file will be in a different directory for every user, a symbolic link in each book directory would probably resolve the issue, but that's a bit wasteful. I have updated TEXMFCACHE in texmfcnf.lua to point to /var/cache/context/texmf-cache/ (world-writable), but it didn't help. It seems that ConTeXt assumes write permissions to the current working directory, which is not a valid assumption. Thoughts? P.S. Also, the --result parameter should be listed in the --help page (or the --help page should list --all as a way to see all the options). ___________________________________________________________________________________ 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 ___________________________________________________________________________________