I type and run the following command in a console window of Fedora Core 5:

tar --gzip --create --verbose --file=/home/ricardo/tmp/xxx.tar.gz /home/ricardo/testesfpc/ebcdic_ascii/*.* /home/ricardo/testesfpc/h.o /home/ricardo/testesfpc/h.pas

and it runs ok. The only message was: tar: Removing leading `/' from member names.

Then I copy the command and move it to a TProcess.CommandLine and run a program that execute the command:

TProcessExecute;

And I receive 3 messages back:

1. tar: Removing leading `/' from member names
2. tar: /home/ricardo/testesfpc/ebcdic_ascii/*.*: Impossible stat: File or directory not found
3. tar: Output delayed by the previous errors

(messages was free translated from portuguese, but the meaning was maintained)

My question is:

Why the TAR command ran OK in console and didn't run OK via TProcess.Execute?

Greetings from Sao Paulo - Brazil

Ricardo

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

Reply via email to