Hi,
Actually I want to implement some feature like synchronization, I will monitor my local directory, if one file changed, I will upload it to the remote server using sftp automatically. I have found example of jsch using sftp, but it just shows how to connect directly to one server, not my situation. I just want to know, is jsch capable of using sftp just like SecureCRT or something like. In SecureCRT, I can ssh to ServerA and ssh to ServerB and ssh to ServerC, and then using sftp to transfer files Thanks very much! 发件人: Pan Li [mailto:pa...@prominic.net] 发送时间: 2009年10月11日 15:19 收件人: 白浩平 抄送: jsch-users@lists.sourceforge.net 主题: Re: [JSch-users] how to synchronize files with sftp Hi Sftp won't do what you need. It transforms data between sever/client, it does not take care file synchronization. If what you need is to synchronize your file, you can use WinSCP or other clients which has build in synchronization. Or you can use rsync or something like that. If you want to develop a tool to synchronizing file/directories, you have to get the source code of rsync and read it. Rsync is a big program; file synchronization is not easy to implement correctly. Pan Li http://Prominic.NET || pa...@prominic.net 8620-82316133 Inactive hide details for 白浩平 ---2009/10/11 15:09:05---Hi, all白浩平 ---2009/10/11 15:09:05---Hi, all From: 白浩平 <baihaop...@gmail.com> To: <jsch-users@lists.sourceforge.net> Date: 2009/10/11 15:09 Subject: [JSch-users] how to synchronize files with sftp _____ Hi, all I don’t know if I have sent one same mail, if so, I am so sorry, please ignore the last one. Here is my problem: I have to ssh to a relay server, and then ssh to a development server and then ssh to a test server. Now I want to synchronize files with sftp between local machine and the test server. What should I do? Please help me with some code example, thanks very much!----------------------------------------------------------------------- ------- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___________________________________________ ____ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users
<<image001.gif>>
<<image003.png>>
<<image004.png>>
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
_______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users