TShell.Create#
Cria uma configuração de shell vazia sem executar comandos.
Declaração#
constructor Create: TShell;Exemplo#
program Example(Config: TConfig);
uses Odisseia.Process;
var Shell: TShell;
begin
Shell := TShell.Create;
Shell.Executable := Config.GetString('SHELL_EXECUTABLE');
Shell.Command := 'echo hello'
end.Antes de Execute, selecione um profile autorizado e defina Command. Por padrão, a saída é capturada e o timeout usa o limite do host.