Function PClose (Var F : FileType) : longint;
PClose closes a file opened with POpen. It waits for the command to complete, and then returns the exit status of the command.
LinuxError is used to report errors. If it is different from zero, the exit status is not valid.
For an example, see POpen