aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Transfering files from one Linux System to another Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Transfering files from one Linux System to another" Watch "Transfering files from one Linux System to another" New topic
Author

Transfering files from one Linux System to another

Chandhrasekar Saravanan
Ranch Hand

Joined: Jun 16, 2002
Posts: 57
I like transfer files from one Linux system to another, i know the easiest way is to use ftp.
is there any other way , that we could use to
transfer file from one Linux system to another using java
Thanks
Regards
Chandhrasekar Saravanan
A.Perdomo
Greenhorn

Joined: Sep 12, 2002
Posts: 9
Check Java Servlet Programming, O'Reilly, Jason Hunter.
There, I found very usefull code to implement a file transfer process. But following that experience, maybe you must consider another way to do that as MQ.

A.Perdomo.
Chandhrasekar Saravanan
Ranch Hand

Joined: Jun 16, 2002
Posts: 57
Hi,
I couldnt understand what MQ is. could any one
suggest me whether there are any other ways we could transfer files from one linux system to other
I like to know what strategy could be used in transfering files from one linux to other
Paul Cowan
Greenhorn

Joined: Nov 01, 2002
Posts: 7
You want to transfer a file between 2 linux machines. Does it have to be using Java?
If you can't use FTP, you could use SSH, or you can use NFS to mount one of the machines and create a virtual directory.
If you want to write it in Java, you would have a client that would probably take a command line name of the file, read it into a byte array, then connect a server conponent and write it across a stream through the socket connection. You could do this simply using an ObjectOutputStream.
The server component would create a ServerSocket, accept connections, read Objects from an ObjectInputStream, and write the data to disk using a FileOutputStream.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Transfering files from one Linux System to another
 
Similar Threads
how to transfer a file
Connect To LUNIX from Windows 7
Embedded Server
scp multiple files concurrently
Transfer files from one system to another system