ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Run context from Perl script
@ 2010-05-12  9:03 Vnpenguin
  2010-05-12  9:08 ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Vnpenguin @ 2010-05-12  9:03 UTC (permalink / raw)
  To: ConTeXt list

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 ?

Thanks,
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run context from Perl script
  2010-05-12  9:03 Run context from Perl script Vnpenguin
@ 2010-05-12  9:08 ` luigi scarso
  2010-05-12 12:28   ` Vnpenguin
  2010-05-12 12:57   ` John Culleton
  0 siblings, 2 replies; 6+ messages in thread
From: luigi scarso @ 2010-05-12  9:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, May 12, 2010 at 11:03 AM, Vnpenguin <vnpenguin@vnoss.org> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run context from Perl script
  2010-05-12  9:08 ` luigi scarso
@ 2010-05-12 12:28   ` Vnpenguin
  2010-05-12 12:31     ` luigi scarso
  2010-05-12 12:57   ` John Culleton
  1 sibling, 1 reply; 6+ messages in thread
From: Vnpenguin @ 2010-05-12 12:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, May 12, 2010 at 11:08, luigi scarso <luigi.scarso@gmail.com> wrote:
>>
>> Any idea for help ?
> What about
> qx{source /opt/luatex/minimals-beta/tex/setuptex; context --silent
> --batch myfile.tex};

Hi luigi,
It works ! Super :)

Thank you,
Regards
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run context from Perl script
  2010-05-12 12:28   ` Vnpenguin
@ 2010-05-12 12:31     ` luigi scarso
  0 siblings, 0 replies; 6+ messages in thread
From: luigi scarso @ 2010-05-12 12:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, May 12, 2010 at 2:28 PM, Vnpenguin <vnpenguin@vnoss.org> wrote:
> On Wed, May 12, 2010 at 11:08, luigi scarso <luigi.scarso@gmail.com> wrote:
>>>
>>> Any idea for help ?
>> What about
>> qx{source /opt/luatex/minimals-beta/tex/setuptex; context --silent
>> --batch myfile.tex};
>
> Hi luigi,
> It works ! Super :)

unfortunately  I'm, and will always be, Scarso Luigi....sigh....
-- 
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run context from Perl script
  2010-05-12  9:08 ` luigi scarso
  2010-05-12 12:28   ` Vnpenguin
@ 2010-05-12 12:57   ` John Culleton
  2010-05-12 13:04     ` luigi scarso
  1 sibling, 1 reply; 6+ messages in thread
From: John Culleton @ 2010-05-12 12:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wednesday 12 May 2010 05:08:02 luigi scarso wrote:
> On Wed, May 12, 2010 at 11:03 AM, Vnpenguin 
<vnpenguin@vnoss.org> 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};

I have texlive 2009 installed. I get the same error messages:

bash-3.1$ context book.tex
MTXrun | unknown script 'context.lua' or 'mtx-context.lua'

Do I have to install context-minimals to use mkiv or is this just a 
path problem?


-- 
John Culleton
Wexford Press
"Create Book Covers with Scribus"
Printable E-book 38 pages $5.95
http://www.scribd.com/doc/24676863/
http://www.booklocker.com/books/4055.html
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run context from Perl script
  2010-05-12 12:57   ` John Culleton
@ 2010-05-12 13:04     ` luigi scarso
  0 siblings, 0 replies; 6+ messages in thread
From: luigi scarso @ 2010-05-12 13:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, May 12, 2010 at 2:57 PM, John Culleton <john@wexfordpress.com> wrote:
> I have texlive 2009 installed. I get the same error messages:
>
> bash-3.1$ context book.tex
> MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
>
> Do I have to install context-minimals to use mkiv or is this just a
> path problem?
Always use context-minimals for mkiv
(and I use it also for mkii too)


-- 
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-05-12 13:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-12  9:03 Run context from Perl script Vnpenguin
2010-05-12  9:08 ` luigi scarso
2010-05-12 12:28   ` Vnpenguin
2010-05-12 12:31     ` luigi scarso
2010-05-12 12:57   ` John Culleton
2010-05-12 13:04     ` luigi scarso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).