Module EDActionExecuteSystemCommand :: Class EDActionExecuteSystemCommand
[hide private]
[frames] | no frames]

Class EDActionExecuteSystemCommand

source code

        object --+            
                 |            
 EDObject.EDObject --+        
                     |        
   EDLogging.EDLogging --+    
                         |    
        object --+       |    
                 |       |    
threading._Verbose --+   |    
                     |   |    
      threading.Thread --+    
                         |    
         EDAction.EDAction --+
                             |
                            EDActionExecuteSystemCommand

This class executes a process using the Python os.sytem command. It is a temporary solution for the "==>[ERROR]: OSError: [Errno 10] No child processes" problem with ALActionProcess (Python bug in subprocess, see bug #61).

Instance Methods [hide private]
 
__init__(self, _strCommand)
Initializes the class: the argument _strCommand should be the complete command line, i.e.
source code
 
process(self, _edPlugin=None)
Executes the command line using the standard Python os.system command.
source code
 
getExecutionStatus(self)
Returns the string containing the execution status.
source code
 
abort(self, _edObject=None)
This method can be used to abort the process, for example when the execution time has exceeded the maximum allowed execution time.
source code

Inherited from EDAction.EDAction: addExtraTime, connectFAILURE, connectFinallyProcess, connectPostProcess, connectPreProcess, connectProcess, connectSUCCESS, execute, executeAction, executeActionSynchronous, executeKernel, executeSynchronous, finallyProcess, getDefaultTimeOut, getLogTiming, getSlotFAILURE, getSlotSUCCESS, getTimeOut, hasTimedOut, isEnded, isFailure, isRunning, isStarted, isTimeOut, postProcess, preProcess, run, setFailure, setLogTiming, setTimeOut, synchronize

Inherited from EDLogging.EDLogging: ASSERT, DEBUG, ERROR, WARNING, error, isVerboseDebug, log, screen, setAllLogLevels, setLogFileName, setLogFileOff, setLogLevel, setTestOff, setTestOn, setVerboseDebugOff, setVerboseDebugOn, setVerboseOff, setVerboseOn, unitTest, warning, writeErrorTrace

Inherited from EDObject.EDObject: getClassName, getId, getRunTime, getSemaphoreValue, getTimeEnd, getTimeInit, locked, setTimeEnd, setTimeInit, synchronizeOff, synchronizeOn

Inherited from threading.Thread: __repr__, getName, isAlive, isDaemon, is_alive, join, setDaemon, setName, start

Inherited from threading.Thread (private): _reset_internal_locks, _set_daemon, _set_ident

Inherited from threading._Verbose (private): _note

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from EDLogging.EDLogging (private): _EDObject__iId_class

Properties [hide private]

Inherited from EDAction.EDAction: logTiming

Inherited from threading.Thread: daemon, ident, name

Inherited from threading.Thread (private): _block

Inherited from object: __class__

Method Details [hide private]

__init__(self, _strCommand)
(Constructor)

source code 

Initializes the class: the argument _strCommand should be the complete command line, i.e. path to executable + command line arguments

Overrides: object.__init__

process(self, _edPlugin=None)

source code 

Executes the command line using the standard Python os.system command. The result of the os.system command is converted into an str.

Overrides: EDAction.EDAction.process

abort(self, _edObject=None)

source code 

This method can be used to abort the process, for example when the execution time has exceeded the maximum allowed execution time.

Overrides: EDAction.EDAction.abort