[nflug] FreePascal Shell Command

Robert Wolfe robertwolfe at localnet.com
Mon Oct 27 15:31:48 EDT 2008


Mark Deazley wrote:
> In the PDF document:
>
>     ftp://ftp.freepascal.org/pub/fpc/docs-pdf/rtl.pdf
>
> on page 1534, section 32.3.28, the 'Shell' function is
> described...
>
> Declaration: function Shell(const Command: String) : cint
>              function Shell(const Command: AnsiString) : cint
>
> "Shell invokes the bash shell (/bin/sh), and feeds it the command Command
> (using the -c option).
> The function then waits for the command to complete, and then returns the
> exit status of the
> command, or 127 if it could not complete the FpFork (140) or FpExecve
> (137) calls."
>
> Does this fit the requirement???
>
> MJD
>
>   

Why yes.  Yes it does.  Thanks!


More information about the nflug mailing list