Package Ganga :: Package Utility :: Package AMGAServerTools :: Module Commands
[hide private]
[frames] | no frames]

Module Commands

source code

Classes [hide private]
  winPopen
Class to emulate popen2.Popen3 object on Windows
  Command
Class to submit a command to the operative system
Functions [hide private]
 
Kill(pid, exitCode=0)
Wrapper for os.kill() to kill a process Kill(pid [, exitCode]) --> status.
source code
 
winAllProcesses(object='Process', format=None, machine=None, bRefresh=1)
Return a tuple of a list of process attributes and a list with the requested attributes for all processes.
source code
 
ListAllProcesses()
List attributes for all running processes.
source code
 
GetProcessAttributes(pid) source code
 
IsRunning(pid)
IsRunning(pid) --> status pid = pricess ID.
source code
 
submitCmd(cmd_line, std_in=[], timeout=120.0) source code
Variables [hide private]
  WIN_EXT = 1
  MIN_TIMEOUT = 0.01
  __package__ = 'Ganga.Utility.AMGAServerTools'
  __warningregistry__ = {('The popen2 module is deprecated. Use...
Function Details [hide private]

Kill(pid, exitCode=0)

source code 

Wrapper for os.kill() to kill a process Kill(pid [, exitCode]) --> status. exitCode is relevant only for win32 platform

winAllProcesses(object='Process', format=None, machine=None, bRefresh=1)

source code 

Return a tuple of a list of process attributes and a list with the requested attributes for all processes. Run only on win32 with windows extensions.

IsRunning(pid)

source code 

IsRunning(pid) --> status pid = pricess ID. status = True or False


Variables Details [hide private]

__warningregistry__

Value:
{('The popen2 module is deprecated.  Use the subprocess module.',
  <type 'exceptions.DeprecationWarning'>,
  15): True}