From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58701 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Run context from Perl script Date: Wed, 12 May 2010 11:08:02 +0200 Message-ID: References: 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 1273655296 31356 80.91.229.12 (12 May 2010 09:08:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 12 May 2010 09:08:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 12 11:08:15 2010 connect(): No such file or directory 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 1OC7vL-00047o-H0 for gctc-ntg-context-518@m.gmane.org; Wed, 12 May 2010 11:08:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C09B9C9B1A; Wed, 12 May 2010 11:08:14 +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 d-UtxjCcBSda; Wed, 12 May 2010 11:08:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 390E0C9B35; Wed, 12 May 2010 11:08:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B676C9B35 for ; Wed, 12 May 2010 11:08:07 +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 3mUsFxn81oI1 for ; Wed, 12 May 2010 11:08:04 +0200 (CEST) Original-Received: from mail-gw0-f41.google.com (mail-gw0-f41.google.com [74.125.83.41]) by balder.ntg.nl (Postfix) with ESMTP id 5B15CC9B1A for ; Wed, 12 May 2010 11:08:04 +0200 (CEST) Original-Received: by gwj18 with SMTP id 18so3330379gwj.14 for ; Wed, 12 May 2010 02:08:03 -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=jZadhdfzb1V8d1L1fYpc+ndxEvhJDlsrMMgzUd9bKlA=; b=EqxtVGWCJ50SbvSEb4h3xQikWdp82OeGAJrIlY41ipjJXIx0fbA0jkwSwT/Su7XBs3 v5y1KIy2DP299gzKyugI1hcbCgzNhQfA8xq3qL53Y/gRYIzufAAdr1QvAPwU0CPzAEBW rX0dJu/K3+F2HNijrw++6oyRMMBP7Gt1/C5Dw= 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=M7fhzmRZiSvOMcxDHEgpbqaonkbS2+bkWNdpp7qFCaS52g5wqOawtHdgk4BrWxw6eH x3zL5bdJ656V/OMaS6bu56uxfoCB4VWL1Ly8hkeX/gie99pkIZ86LjJHX4qebpklc0tG qsi5wFRx5tJpKWsAabyL0+XFYVjo3JnMQUuwU= Original-Received: by 10.101.206.12 with SMTP id i12mr3857835anq.267.1273655282993; Wed, 12 May 2010 02:08:02 -0700 (PDT) Original-Received: by 10.100.166.4 with HTTP; Wed, 12 May 2010 02:08:02 -0700 (PDT) In-Reply-To: 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:58701 Archived-At: On Wed, May 12, 2010 at 11:03 AM, Vnpenguin wrote: > Hi all, > I would like to run context from a Perl script. Within this script I > defined environment variables (TEXMFOS, TEXMFCAHE & PATH). > The command to run is : > > exec("/path/to/context myfile.tex"); > > But context can not start. I have following error: > > MTXrun | unknown script 'context.lua' or 'mtx-context.lua' > > With the same method, I can run "texexec" without any problem. > > Any idea for help ? What about qx{source /opt/luatex/minimals-beta/tex/setuptex; context --silent --batch myfile.tex}; -- 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 ___________________________________________________________________________________