LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   parse exception with port when rsync (https://www.linuxquestions.org/questions/linux-newbie-8/parse-exception-with-port-when-rsync-4175550008/)

rayalab 08-06-2015 04:13 AM

parse exception with port when rsync
 
Hi,

my Java class is executing rsync command with --port=22 then getting below exp.

rsync:
/local/rsync --rsync-path=/local/rsync -vt --stats --progress --compress -e /usr/bin/ssh -x --port=22 --partial-dir=/local/partial --block-size=5000 --temp-dir=/local/inbound --timeout=3600 /local/myFiles/test.zip www@www.dev.com:"/local/myFiles/test.zip

Exp:

java.io.IOException: Failed to parse rsync output

--------------------------------------------------------

If I use -p 22 then getting below error.

rsync:
/local/rsync --rsync-path=/local/rsync -vt --stats --progress --compress -e /usr/bin/ssh -x -p 22 --partial-dir=/local/partial --block-size=5000 --temp-dir=/local/inbound --timeout=3600 /local/myFiles/test.zip www@www.dev.com:"/local/myFiles/test.zip

Exp:
'rsync: link_stat "/local1/basecamp/applications/valiant/process/22" failed: No such file or directory (2)'

Please help me how to fix it.

Thanks.

rayalab 08-06-2015 04:28 AM

Hi,

I think the parse exception is not because of port number.I am getting parse exception if I execute the below command from java.

/local/rsync --rsync-path=/local/rsync -vt --stats --progress --compress -e /usr/bin/ssh -x --port=22 --partial-dir=/local/partial --block-size=5000 --temp-dir=/local/inbound --timeout=3600 /local/myFiles/test.zip www@www.dev.com:"/local/myFiles/test.zip

Thanks.


All times are GMT -5. The time now is 03:36 AM.