Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with calling rsync+ssh from java on windows
    primarykey
    data
    text
    <p>I'm having trouble calling rsync from java on windows vista with cygwin installed. Its strange as pasting the exact same command into a command shell works fine.</p> <p>My test java call looks like this.</p> <pre><code>String[] envVars = {"PATH=c:/cygwin/bin;%PATH%"}; File workingDir = new File("c:/cygwin/bin/"); Process p = Runtime.getRuntime().exec("c:/cygwin/bin/rsync.exe -verbose -r -t -v --progress -e ssh /cygdrive/c/Users/dokeeffe/workspace/jrsync/ www.servername.net:/home/dokeeffe/rsync/",envVars,workingDir); </code></pre> <p>Then I start 2 stream reader threads to capture and log the inputStream and errorStream of the Process p.</p> <p>Here is the output....</p> <pre><code>DEBUG: com.mddc.client.rsync.StreamGobbler - opening connection using: ssh www.servername.net rsync --server -vvtre.iLs . /home/dokeeffe/rsync/ DEBUG: com.mddc.client.rsync.StreamGobbler - rsync: pipe: Operation not permitted (1) DEBUG: com.mddc.client.rsync.StreamGobbler - rsync error: error in IPC code (code 14) at /home/lapo/packaging/rsync-3.0.4-1/src/rsync-3.0.4/pipe.c(57) [sender=3.0.4] </code></pre> <p>The rsync code where the error happens is pipe.c(57) which is this.</p> <pre><code>if (fd_pair(to_child_pipe) &lt; 0 || fd_pair(from_child_pipe) &lt; 0) { rsyserr(FERROR, errno, "pipe"); exit_cleanup(RERR_IPC); } </code></pre> <p>So, for some reason fd_pair(to_child_pipe) is &lt; 0 or fd_pair(from_child_pipe) &lt; 0.</p> <p>If anyone has any suggestions it would be great as I'm stuck now. Thanks,</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload