[Lazarus] TProcess not mirroring terminal

Marc Santhoff M.Santhoff at web.de
Tue Jun 2 15:42:15 CEST 2015


On Di, 2015-06-02 at 14:21 +0200, JuuS wrote:

> Anyone have an idea why this is so???
> 
> 
> 
> TERMINAL OUTPUT:
> juus at JuuSKub:~$ rsync -n -vshtplgiE --stats --modify-window=1 --progress
> /home/juus/Documents/** /media/juus/Lin1TB/BKactive
> skipping directory CodeBlocks
> skipping directory IntelliJ
> skipping directory qt
> >f+++++++++ hackjs5.html
> >f+++++++++ hackjs7.html
> >f+++++++++ hackjs8.html
> 
> Number of files: 3 (reg: 3)
> Number of created files: 3 (reg: 3)
> Number of deleted files: 0
> Number of regular files transferred: 3
> 
> 
> 
> OUTPUT FROM MY PROGRAM
> rsync: link_stat "/home/juus/Documents/**" failed: No such file or
> directory (2)
> 
> Number of files: 0
> Number of created files: 0
> Number of deleted files: 0
> Number of regular files transferred: 0

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).

-- 
Marc Santhoff <M.Santhoff at web.de>





More information about the Lazarus mailing list