|
|
 |
 |
| WaitForProcessOutput |
| |
Wait for a process to send output |
| |
| Library |
 |
wh::os.whlib |
| |
| Syntax |
 |
PUBLIC INTEGER FUNCTION WaitForProcessOutput (INTEGER processid,INTEGER maxwait) |
| |
| Description |
 |
This process listens to both the output and error stream for data, if these were 'taken' using StartProcess. If both output and errors were not 'taken' using StartProcess, this function will simply wait for the process to terminate. |
| |
| Parameters |
 |
| processid |
 |
ID of process to wait for |
 |
| maxwait |
 |
Time to wait, in milliseconds (-1 = forever) |
 |
|
| |
| Returns |
 |
0 for timeout, 1 if there is 'output', 2 if there are 'errors' |
| |
|
|
|
|