Lines Matching refs:process
82 # Child process: run the command in a subshell
85 # Parent process
135 # If there's data to read from the child process --
221 return ("Process terminated while looking for %s "
244 # Raised when the shell process itself (e.g. ssh, netcat, telnet)
251 return ("Shell process terminated while waiting for command to "
287 @param termination_func: A function to call when the process terminates
298 process = Tail(command=command,
304 while time.time() < end_time and process.is_alive():
307 return process
328 @return: A 2-tuple containing the exit status of the process and its
329 STDOUT/STDERR output. If timeout expires before the process
332 process = run_bg(command, None, output_func, output_prefix, timeout)
333 output = process.get_output()
334 if process.is_alive():
337 status = process.get_status()
338 process.close()
344 This class is used for spawning and controlling a child process.
347 program that reads output from the child process and reports it to the
349 When a server is started it runs the child process.
357 process.
374 Initialize the class and run command as a child process.
386 child process by sendline().
492 The function will be called after the process terminates but before
516 process in the future.
523 Return the PID of the process.
525 Note: this may be the PID of the shell process running the user given
539 Wait for the process to exit and return its exit status, or None
554 Return the STDOUT and STDERR output of the process so far.
567 Return True if the process is running.
574 Kill the child process if it's alive and remove temporary files.
576 @param sig: The signal to send the process when attempting to kill it.
613 Send a string to the child process.
615 @param str: String to send to the child process.
627 Send a string followed by a line separator to the child process.
629 @param str: String to send to the child process.
652 This class runs a child process in the background and sends its output in
658 child process and report it to a given callback function.
659 When the child process exits, its exit status is reported to an additional
669 Initialize the class and run command as a child process.
681 child process by sendline().
682 @param termination_func: Function to call when the process exits. The
687 available from the STDOUT or STDERR streams of the process.
726 @param termination_func: Function to call when the process terminates.
749 output from the process. Must take a single string parameter.
819 # The process terminated; print any remaining output
826 print_line("(Process terminated with status %s)" % status)
853 This class runs a child process in the background and provides expect-like
863 Initialize the class and run command as a child process.
875 child process by sendline().
876 @param termination_func: Function to call when the process exits. The
881 available from the STDOUT or STDERR streams of the process.
906 the child process, or None to use the default value.
964 @raise ExpectProcessTerminatedError: Raised if the child process
1015 @raise ExpectProcessTerminatedError: Raised if the child process
1049 @raise ExpectProcessTerminatedError: Raised if the child process
1067 This class runs a child process in the background. It it suited for
1072 process for responsiveness.
1080 Initialize the class and run command as a child process.
1092 child process by sendline().
1093 @param termination_func: Function to call when the process exits. The
1098 available from the STDOUT or STDERR streams of the process.
1145 Return True if the process responds to STDIN/terminal input.
1147 Send a newline to the child process (e.g. SSH or Telnet) and read some
1152 @param timeout: Time duration to wait before the process is considered
1188 @raise ExpectProcessTerminatedError: Raised if the shell process
1211 @raise ShellProcessTerminatedError: Raised if the shell process
1256 @raise ShellProcessTerminatedError: Raised if the shell process
1290 @raise ShellProcessTerminatedError: Raised if the shell process
1314 @raise ShellProcessTerminatedError: Raised if the shell process