Manuel Pégourié-Gonnard wrote:
You mean scriptS? Because the problem happens only when there are two scripts involved.
the two scripts (but using other paths)
Anyway, this is not the problem. The problem is that when you call in any way (os.execute, os.exec, os.spawn) AR9 froms a texlua script that was os.spawn()-ed or os.exec()-ed by a texlua script that previoulsy initialised kpse, it crashes. Probably there is something specific to acrobat reader version 8 and 9, but it doesn't look totally unrelated to os.exec() or os.spawn() either...
could be some interaction indeed (maybe in intercepting the return values or so), print(os.spawn(...)) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------