Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / August 2005

Tip: Looking for answers? Try searching our database.

Remote Copy Java API???

Thread view: 
Prime - 10 Aug 2005 20:00 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.