Page 1 of 1
capturing batch file output
Posted: Mon May 01, 2006 10:53 pm
by JonShrout
I am compiling using a batch file that requires my file name to be split into two strings. Because of this, I am using a lua script to split the file name then execute the batch file (using the os.execute function).
I need to capture the output from the batch file in a document in Zeus. How can I do this?
TIA
Posted: Mon May 01, 2006 11:36 pm
by jussij
I need to capture the output from the batch file in a document in Zeus. How can I do this?
The page below explains how this can be done using a Zeus macro and the tee utility:
To control the Zeus output window uses to display the output document use the
file_open,
file_open_compiler,
file_open_project or
file_open_tool Zeus macro functions.
Note: The tee utility used in this macro example is purely optional. If tee is not required just change the command line string to read:
Code: Select all
local cmd = "test.cmd > output.txt"
Cheers Jussi