Hello,
My project involves copying files from one Host to another Host located
on the same network of, currently, Solaris machines.
Is there a library or API set that performs tasks similar to Unix's
"rcp host1:<filename> host2:<filename>"
Something like:
File f = new File("/dir/myfile");
RemoteFile r = new RemoteFile(host2, path, filename);
r.RemoteCopyFrom(f);
I want to do this in Java instead of using Shell Scripts for obvious
reasons. I've thought of looking into Jakarta by Apache for FTP, but
we can't get into storing/saving the password for the FTP username.
Any ideas or recommendations?
Thank you!
Oliver Wong - 12 Aug 2005 21:10 GMT
> Is there a library or API set that performs tasks similar to Unix's
> "rcp host1:<filename> host2:<filename>"
>
> Any ideas or recommendations?
It'll be more difficult in Java because the unix command RCP can take
advantage of the fact that the machine it's connecting to is also a unix
machine. Java (usually) doesn't make any such platform specific assumptions.
You'll probably have to write some client/server code, which may be
tricky, depending on how much Java you know.
- Oliver