Last post Jan 03, 2007 12:40 AM by kentpost
Jan 03, 2007 12:40 AM|kentpost|LINK
I'd like to web-enable some build/deployment/various scripts so that these can be manipulated through an admin web-portal rather than being limited to calling only from inside the target OS/config. I've looked into both stdout redir from a impersonated process
and 'tail -f' technique of reading an output file.
With process/stdout, what I'm seeing is that Ajax controls don't give me a continuous feed of data (even with the control being updated inside the loop) instead it completes the entire process/loop then updates the panel afterwards.The scripts could take
15 mintues to run and I'd like to have a constant progress feed available.
If I use a Ajax timer to refresh the whole panel and and call a read() on the log file, I have updates for a while but it doesn't last.
Is there some easy way to do this that I've miseed? Something like spawn a process which is a cmd or other console script then attach to the stdout but update my TextBox as the std stream comes in without having to wait for the whole process to complete.
I also tried conditional update and triggers with not success.