[Lazarus] Run 3 extrenal program, pipeline

Sven Barth pascaldragon at googlemail.com
Thu Feb 2 17:39:34 CET 2012


Am 02.02.2012 17:32, schrieb Maxi:
> In this case is only 1 process and 1 result so no need to call three
> separate processes
> Executes a single TProcess with "df-hT | grep-v-E 'tmpfs | ecryptfs' |
> grep 'sda2' "
>
>

This won't work as TProcess uses "fork"/"exec" to execute the new 
process and not "system". But because of the pipes the "system" call 
would be needed. Thus the manual solution.

Regards,
Sven




More information about the Lazarus mailing list