Menu

TATUProcessManager

Krzysztof Kamil Jacewicz

Intro

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.

Declaration

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.

Inheritance

Inherits from TComponent.

See also


Related

Wiki: ATUProcess_demo
Wiki: TATUProcessManager.Run
Wiki: atuProcess

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.