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
capturing batch file output
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.I need to capture the output from the batch file in a document in Zeus. How can I do this?
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"