Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
isDSinFAX.Command Class Reference
Inheritance diagram for isDSinFAX.Command:
Collaboration diagram for isDSinFAX.Command:

Public Member Functions

def __init__ (self, cmd)
 
def run (self, timeout)
 

Public Attributes

 cmd
 
 process
 

Detailed Description

Definition at line 28 of file isDSinFAX.py.

Constructor & Destructor Documentation

◆ __init__()

def isDSinFAX.Command.__init__ (   self,
  cmd 
)

Definition at line 30 of file isDSinFAX.py.

30  def __init__(self, cmd):
31  self.cmd = cmd
32  self.process = None
33 

Member Function Documentation

◆ run()

def isDSinFAX.Command.run (   self,
  timeout 
)

Definition at line 34 of file isDSinFAX.py.

34  def run(self, timeout):
35  def target():
36 # print ('command started: ', self.cmd)
37  self.process = subprocess.Popen(self.cmd, shell=True)
38  self.process.communicate()
39 
40  thread = threading.Thread(target=target)
41  thread.start()
42 
43  thread.join(timeout)
44  if thread.is_alive():
45  print ('Terminating process')
46  self.process.terminate()
47  thread.join()
48  return self.process.returncode
49 
50 
51 #print ('Geting data from AGIS ...')
52 

Member Data Documentation

◆ cmd

isDSinFAX.Command.cmd

Definition at line 31 of file isDSinFAX.py.

◆ process

isDSinFAX.Command.process

Definition at line 32 of file isDSinFAX.py.


The documentation for this class was generated from the following file:
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
copySelective.target
string target
Definition: copySelective.py:37