BasicProcess

class support.process.BasicProcess(name='', pid=0, ps_line=None, command_name='ssh')

Bases: object

Class representing a basic process, with name and pid. A BasicProcess object is used to represent an already running process. To spawn a new process, use subprocess.Popen. Public Attributes:

name (str): The name of the process
pid (int): The process ID
Public Members::

kill: kill the process

Methods Summary

kill()

process_ps_line(ps_line, command_name)

Given a line from the output of ps x, get the name and pid of the process.

Methods Documentation

kill()
process_ps_line(ps_line, command_name)

Given a line from the output of ps x, get the name and pid of the process. Returns: