[fpc-pascal] Re: Linux: How to execute a program, but not towaituntil finishes
Ludo Brands
ludo.brands at free.fr
Wed Jul 20 13:02:20 CEST 2011
BTW fpc svn 17615
Tried this also on solaris x86 and ubuntu 11.04 32 bit.
Ludo
> -----Message d'origine-----
> De : fpc-pascal-bounces at lists.freepascal.org
> [mailto:fpc-pascal-bounces at lists.freepascal.org] De la part
> de Ludo Brands
> Envoyé : mercredi 20 juillet 2011 12:49
> À : 'FPC-Pascal users discussions'
> Objet : RE : RE : [fpc-pascal] Re: Linux: How to execute a
> program,but not towaituntil finishes
>
>
> Ubuntu 10.04 64 bit. Attached the test program. Compile and launch
> $ ./testshell your-program
>
> You'll find your-program in ps -l parented to PID 1.
>
> Ludo
>
>
> > -----Message d'origine-----
> > De : fpc-pascal-bounces at lists.freepascal.org
> > [mailto:fpc-pascal-bounces at lists.freepascal.org] De la part
> de fred f
> > Envoyé : mercredi 20 juillet 2011 12:19
> > À : FPC-Pascal users discussions
> > Objet : Re: RE : [fpc-pascal] Re: Linux: How to execute a
> > program, but not towaituntil finishes
> >
> >
> > I don't know on which system you tried, but on my Ubuntu
> > 11.04 64bit it dies with parent one.
> >
> > On Wed, Jul 20, 2011 at 9:53 AM, Ludo Brands
> > <ludo.brands at free.fr> wrote:
> > > 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-bounces at lists.freepascal.org
> > >> [mailto:fpc-pascal-bounces at 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 at lists.freepascal.org
> > >> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > >>
> > >
> > > _______________________________________________
> > > fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> > > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> > >
> > _______________________________________________
> > 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