简体   繁体   中英

copy files from one solaris 9 to another using java

How to copy file(s) from one solaris 9 machine to another solaris 9 machine using only java?

We have ssh access to both machines. The java program will run on one of those two machines.

Update: rsync is not really an option. can't install it easily (UNIX team is, hum, hard to deal with)

您可以使用Runtime.exec()启动rsync

Or you could use FTP. Or you could mount some shared storage.

use the ssh library jsch -- http://www.jcraft.com/jsch/ . This program is used by ant to do ssh transfers. very good -- been there a long time(> 5 years), decent documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM