probably some os.execute parsing ...

Do you mean Lua itself does the parsing and substitution? I guessed [lua]tex 
core...

When I try to call on the command line:

"
C:\Lukas\ConTeXt\TestDDv>lua
Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
os.execute([[lua -e "print 'WWW'"]])
WWW
os.execute([[echo lua -e "print 'WWW'"]])
lua -e "print 'WWW'"
=os.exec
nil
=os.spawn
nil

"

- There is no '/" substitution in standalone Lua (?!).

does os.exec or os.spawn work ok?

Well, the 'os.exec' works, in condition that it is called with "cmd /c":

----
\ctxlua{os.execute([[echo lua -e "print 'EXECUTE'"]])}
\ctxlua{os.exec([[cmd.exe /c echo lua -e "print 'EXEC'"]])}
\ctxlua{os.spawn([[cmd.exe /c echo lua -e "print 'SPAWN'"]])}

\starttext
  A
\stoptext
----

Gives:

"
...
languages       > language en is active
lua -e "print "EXECUTE""
lua -e "print 'EXEC'"

system          | total runtime: 0.609
"

Interesting that the string to be passed to 'os.exec' keeps ' whilst that to 
'os.execute' doesn't.

Why this happens?

Anyhow, thanks for the idea with 'os.exec'.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.      [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to