[Lazarus] TProcess not mirroring terminal
JuuS at mykolab.ch
Tue Jun 2 16:08:41 CEST 2015
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!
Thanks for your answers guys.
More information about the Lazarus