Problem calling rsync from java on OSX

Wayne Davison wayned at
Fri Nov 19 18:27:45 GMT 2004

On Fri, Nov 19, 2004 at 12:05:25PM -0600, Drew Lippolt wrote:
> the redirection stuff doesn't work too well when called from java.

Yes, I thought that the exec function might not directly parse a
shell redirection character, but bear in mind that there are always
ways to affect the stdin that is passed to a process.  E.g. put the
rsync command into a shell script (which will parse the normal shell
redirection character) or jump through whatever java hoops are
necessary to change the stdin of a process that is being executed
(the page you cited gives some example code for how to do that).

> does anyone see a problem with this modification, assuming the
> resultant binary would never be run in any mode except daemon
> mode?

Your kluge is certainly fine as long as you don't need to run from
inetd (which you said you don't).


More information about the rsync mailing list