Hi, >> >> is it possible to programatically set the exit status of the LuaTeX run? >> >> say something like this: >> >> tex.exitstatus = 1 >> >> or \exitstatus=1 \bye > > \directlua{os.exit(1)} d'oh! Obvious... It exits immediately but that would be OK for me. Thanks Tomek! Patrick