[Lazarus] TProcess not mirroring terminal
JuuS at mykolab.ch
Thu Jun 4 13:31:01 CEST 2015
On 06/04/2015 01:05 PM, JuuS wrote:
> On 06/02/2015 04:08 PM, JuuS wrote:
>> On 06/02/2015 03:42 PM, Marc Santhoff wrote:
>>> On Di, 2015-06-02 at 14:21 +0200, JuuS wrote:
>>>> Anyone have an idea why this is so???
>>> Maybe the difference is that your TProcess is reading only stdout, not
>>> stderr. Dunno if there is a switch in TProcess, if not you'd need to
>>> redirect stderr to stdout (which is shell dependant, 2>&1 for sh, >& for
>>> csh, IIRC).
>> Thanks for reply Marc, but Michael had it absolutely right.
>> I changed my TProcess to run /bin/sh instead of rsync, added -c as first
>> param, then the entire rsync command as second param.
>> It works Great!
> Ooops. Just sent this note so that no one becomes misled. It does NOT
> work if there are spaces in the paths (for example a source folder with
> name '/myfolder/File name').
> Sent it with "'s surrounding it and rsync still does not understand it,
> even though it is coming through /bin/sh.
> No worries, I'll work something out. Just didn't want this thread to
> lead people down the wrong path...
Sorry for the bother...solution is to replace all spaces (" ") with
backslash escape ("\ "). I go back in my hole now.
>> Thanks for your answers guys.
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
More information about the Lazarus