ATLAS Offline Software
Loading...
Searching...
No Matches
isDSinFAX.Command Class Reference
Inheritance diagram for isDSinFAX.Command:
Collaboration diagram for isDSinFAX.Command:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

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

Public Attributes

 cmd = cmd
 process = None

Detailed Description

Definition at line 28 of file isDSinFAX.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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()

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
Definition run.py:1

Member Data Documentation

◆ cmd

isDSinFAX.Command.cmd = cmd

Definition at line 31 of file isDSinFAX.py.

◆ process

isDSinFAX.Command.process = None

Definition at line 32 of file isDSinFAX.py.


The documentation for this class was generated from the following file: