[fpc-pascal] Re: Linux: How to execute a program, but not to wait until finishes

fred f ffred69 at gmail.com
Tue Jul 19 16:52:38 CEST 2011


Hi,

use this code, which starts itself, but when you close first started
the second ends as well, what I don't want.

  with TProcess.Create (Application) do begin
    CommandLine := Application.ExeName + ' &';
    Execute;
    Free;
  end;

Thanks.

F.

On Sat, Jul 16, 2011 at 5:49 AM, leledumbo <leledumbo_cool at yahoo.co.id> wrote:
> Try Michael's suggestion. It works, even on other platforms.
>
> --
> View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Linux-How-to-execute-a-program-but-not-to-wait-until-finishes-tp4550251p4593043.html
> Sent from the Free Pascal - General mailing list archive at Nabble.com.
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>



More information about the fpc-pascal mailing list