LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-06-2015, 04:13 AM   #1
rayalab
LQ Newbie
 
Registered: Jul 2015
Posts: 12

Rep: Reputation: Disabled
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.
 
Old 08-06-2015, 04:28 AM   #2
rayalab
LQ Newbie
 
Registered: Jul 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables assistance blocking outbound port with an exception Calicojack42 Linux - Networking 2 05-04-2012 12:26 PM
Is there any way to add an exception for a port in the firewall setting, permanently? senrooy Linux - Kernel 6 03-03-2010 12:28 AM
make an exception when doing rsync procfs Linux - General 9 08-10-2006 12:00 AM
make an exception when doing rsync procfs Linux - General 1 08-01-2006 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration