Home > Objects > @Process > isreal.m

iFit/isreal

PURPOSE ^

status = isreal(pid): read process status and output

SYNOPSIS ^

function status=isreal(pid)

DESCRIPTION ^

 status = isreal(pid): read process status and output

 @Process/isreal: determines if the referred command is still running
 and collects the content of its printed output and error messages (stdout/stderr).
 The methods returns the state of the Process.

 input:
   pid: a process object as created with Process('command')
 output:
   status: true for active process, false when process is terminated.

 examples: waits for completion of process, equivalent to waitfor(Process(...))
   pid=Process('ping 127.0.0.1')
   while any(isreal(pid))
     pause(1)
   end
     

 See also: Process/refresh, Process/exit
 Process is part of iFit http://ifit.mccode.org

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Wed 22-Mar-2017 09:13:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1