Sitemap Sitemap  |  Contact Us Contact Us  |  Clients Clients
   WaitForProcessOutput
  Home |  WebHare Lite |  Downloads |  HareScript |  Websites/CMS |  Applications
Search for:  in: 
HareScript
File I/O and processes
 
File and disk I/O
Processes and the OS
Remote filesystem API
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'
 
 
In library 'os'
CloseProcess
CloseProcessInput
FlushOutputBuffer
GetConsoleArguments
GetCurrentPath
GetProcessExitCode
GetSystemNumProcessors
GetSystemNumVirtualProcessors
GetSystemOsName
IsProcessRunning
ParseArguments
ReadConsoleInput
ReadProcessErrors
ReadProcessOutput
RunningMSWindows
SetConsoleExitCode
SetOutputBuffering
Sleep
StartProcess
TerminateProcess
WaitForProcessOutput
 
Top To top of page