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... > > Thanks for your answers guys. > > -- > _______________________________________________ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus