Hi all. I wrote a macro that executes a script based on some parameters that the user selects in the macro form. I want to be able to provide some feedback in the macro form as to the state of the scripts execution. Using the concur_command() function, I am able to queue up the command and see its output in the build window. My thought was to have my script create a "status file" that would output status information updates as the script ran and completed certain tasks. Something like:
<status_file.txt>
Running program A...
Program A complete.
Running program B...
Program B complete.
What I would need is a way to trigger a function or command in my macro to read the last line in this file when it gets modified and use it to update some feedback controls in the form.
Any ideas how to do this?
My first thought was to create a polling command that checked the status file periodically, but that sounds like a shady way to do it and I could not figure out how that would work in slick C. I need a solution that is self contained contained in the macro itself.
Thanks!