with TProcess.Create(nil) do begin CommandLine := '/my/path/to/exe'; Execute; Free; end;
works fine. The child continues after the parent dies. Ludo > -----Message d'origine----- > De : fpc-pascal-boun...@lists.freepascal.org > [mailto:fpc-pascal-boun...@lists.freepascal.org] De la part de fred f > Envoyé : vendredi 15 juillet 2011 16:14 > À : FPC-Pascal users discussions > Objet : Re: [fpc-pascal] Re: Linux: How to execute a program, > but not to waituntil finishes > > > first of all, thanks for answers, but > > >> fpsystem('/my/path/to/exe &'); > > works fine and it does what I want, but when my application > ends then the started app over fpsystem is closed as well. > > Thanks in advance. > > F. > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal