Am 03.11.2014 um 12:42 schrieb Xan: > Just short question: what's the equivalent in latex of > \ctxlua{context(os.resultof("sha256sum \jobname.conTeXt | cut -c -5"))}
\documentclass{article} \begin{document} \directlua{ local handle = io.popen("sha256sum \jobname.tex | cut -c -5","r") if handle then local result = handle:read("*all") or "" handle:close() tex.print(result) end } \end{document} or load l-os.lua, then the command os.resultof is available. Herbert ___________________________________________________________________________________ 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 ___________________________________________________________________________________