program example56;
uses Unix;
With the manual example below I can obtain the exit status of a shell command.
Is it possible to read the result of the shell command into a string to be used in an fpk program ?
{ Program to demonstrate the Shell function }
Var S : Longint;
begin
Writeln ('Output of ls -l *.pp');
S:=fpSystem('ls -l *.pp');
Writeln ('Command exited with status : ',S);
end.