Equivalent of os.resultof(...) in LaTeX
![](https://secure.gravatar.com/avatar/7885cf9b6111344a62a77b00b1561364.jpg?s=120&d=mm&r=g)
3 Nov
2014
3 Nov
'14
12:42 p.m.
Hi, Just short question: what's the equivalent in latex of \ctxlua{context(os.resultof("sha256sum \jobname.conTeXt | cut -c -5"))} ? Thanks in advance, Xan
![](https://secure.gravatar.com/avatar/0e86c3ddf8d04cdb7b66f8fe72117b1e.jpg?s=120&d=mm&r=g)
3 Nov
3 Nov
1:36 p.m.
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
3755
Age (days ago)
3755
Last active (days ago)
1 comments
2 participants
participants (2)
-
Herbert Voss
-
Xan