Thank you very,very much Adrian.
Your answer was the most clear, simple and
complete I ever receive. It solves my trouble in a perfect way.
I ever think(and defend) that suppose people who
have a trouble is not an expertise in the matter
is the best way of achieve the best answer.
Best regards
Arí Ricardo
At 05:01 14/12/2006, you wrote:
Hello Ari,
Well, all the programs have 3 standard files : input, output and
error. The 'standard
error' is usually used for writing errors, warnings and other messages.
The standard error is different from the standard output because it is
desirable that
the messages (which could be just warnings or debugging messages)
don't pollute the
program's output. Also, a separate standard
error allows a program to have its
output redirected through a pipe , and at the same time write
progress information
on the screen.
When you run a program from the command line : both 'standard output' and
'standard error' are associated to the screen (console).
But when calling the same program with TProcess , the program's output will
be separated : some data go to TProcess.Output , and some other data go to
TProcess.StdErr .
You have two options:
- add the poStderrToOutPut to the Options of your TProcess object
. This will tell
TProcess to "Redirect standard error to the standard output stream".
- or, read the messages from TProcess.StdErr similarly to how you read from
TProcess.Output .
The second option is probably better .
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives