On Fri, Oct 8, 2010 at 11:21 AM, Henning Hraban Ramm <hra...@fiee.net> 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 ___________________________________________________________________________________