| |
Brad
Posts: 13
Score: 0
Joined: 8/10/2007
Status: offline
|
I am writing a script that monitors multiple log files in real time using a windows port of "tail" to follow the files and put lines to stdout for scraping. It is essential that the tail program be used because it allows me to watch log files via FTP, which cannot be done programatically in vbscript, AFAIK. The problem lies in the fact that .stdout.readline will wait for something to read if nothing is present, and .AtEndOfStream will not return false because...well...the stream has not ended because the tail program is still running. What I need is this: Do until blnPigsFly if stdout1 contains a new line print the new line end if if stdout2 contains a new line print the new line end if if stdout3 contains a new line print the new line end if Loop As it stands, one log file has to be written to before it will advance to the next one because StdOut.ReadLine halts the script and waits for input. Thoughts? -Brad
|
|