[fpc-pascal] TProcess execution
Michael Van Canneyt
michael at freepascal.org
Thu Feb 9 09:05:52 CET 2006
On Thu, 9 Feb 2006, Micha Nelissen wrote:
> Michael Van Canneyt wrote:
> >
> > On Wed, 8 Feb 2006, Micha Nelissen wrote:
> >
> > > How can I know whether a TProcess failed when trying to execute it ?
> > > Running will be false, but I want to distinguish between the file not
> > > there / no execution permission / etc. and it started running but was
> > > done
> > > quickly.
> >
> > It should raise an exception if execution fails ?
>
> That I should have noticed :-). In unix, the return result of the 'fpexecve'
> call is not checked, at least. If it returns, it does 'halt(127)', so should I
> check the ExitStatus being 127 ?
On unix, yes. I'll see if I can add some checking at the TProcess level.
Michael.
More information about the fpc-pascal
mailing list