I try it, eg, I call bash and pass my tar command as parameter. And it seems that everything is OK now.

Thanks for everybody in special mr "Tony Pelton" <[EMAIL PROTECTED]> .

Greetings from Sao Paulo - Brazil

Ricardo


At 17:09 7/2/2007, you wrote:
On 2/7/07, Felipe Monteiro de Carvalho
<[EMAIL PROTECTED]> wrote:
> Why the TAR command ran OK in console and didn't run OK via TProcess.Execute?

Because the *.* is resolved by BASH, and not by TAR


You need to use code to do what bash does, which is expand *.* into
all the files of the directory.

alternatively, you can invoke 'bash' as the "executable" ... instead
of 'tar', and tell the shell to run the tar command, with the wildcard
arguments.

in structuring your TProcess call this way, you should get the same
behavior as if you ran the tar command from within the shell.

Felipe Monteiro de Carvalho

Tony

--
X-SA user ? 0.5.1 is out !
XData 0.1 for X-SA is out !
http://x-plane.dsrts.com

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


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

Reply via email to