All Things Ubuntu Library Wiki
Ubuntu dedicated Object Pascal libraries
Brought to you by:
krisjacewicz
TATUProcessManager is a non-visual component class from the [atuProcess] unit (source: atuProcess.pas) and it is part of [ATU package] for [Lazarus IDE].
This component is designed for managing bulk process execution and interaction with input/output, in an asynchronous (non-blocking) way.
The class interface:
TATUProcessManager = Class(TComponent) end;
Public declarations:
Header | Description |
---|---|
Constructor [TATUProcessManager.Create] | Creates the new instance of the TATUProcessManager class. |
Destructor [TATUProcessManager.Destroy] | Destroys this instance of TATUProcessManager. |
Procedure [TATUProcessManager.Run] | Execute the program with the given options (overloaded versions). |
Procedure [TATUProcessManager.KillAll] | Kills all processes currently running under this instance of TATUProcessManager. |
Function [TATUProcessManager.SendInput] | Send input to a program running under this instance of TATUProcessManager. |
Function [TATUProcessManager.SendInputLn] | Send input to a program running under this instance of TATUProcessManager, followed by the end of line symbol. |
Published declarations:
Header | Description |
---|---|
Property [TATUProcessManager.OnProcessOutput]: TATUProcessEvent; | Asynchronous event (not thread-safe) called whenever there is output available from either StdOut or StdErr (or both) pipe of a process running under this instance of TATUProcessManager. |
Property [TATUProcessManager.OnSudoPrompt]: TATUSudoPromptEvent; | Asynchronous event (not thread-safe) called whenever there is sudo password prompt detected on the output from a process running under this instance of TATUProcessManager. |
Property [TATUProcessManager.OnProcessExit]: TATUProcessEvent; | Synchronous event (thread-safe) that is called in the end of execution of a program which was ran under this instance of TATUProcessManager. |
Inherits from TComponent.
Wiki: ATUProcess_demo
Wiki: TATUProcessManager.Run
Wiki: atuProcess