ArĂ­ Ricardo Ody wrote:
I create a single program that, after capture a list of files and the name of the tar file, execute a TProcess running the Tarball program under linux(Mandriva 2006).

I'm writting because I'd like to know if there is a way of catch a return code or similar to detect if there were errors in the tarball execution.

Have you seen this wiki section on TProcess? It has an area that shows how to get output from a program run using TProcess.

http://wiki.lazarus.freepascal.org/Executing_External_Programs#Using_input_and_output_of_a_TProcess
or
http://tinyurl.com/sq69j
http://preview.tinyurl.com/sq69j (preview)


--

Warm Regards,

Lee

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to