File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Access unix machine to read and save a file- from java code - Unix machine IP, userID, pwd given Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Access unix machine to read and save a file- from java code - Unix machine IP, userID, pwd given

Archana Honnavalli
Ranch Hand

Joined: Feb 26, 2008
Posts: 39
Hi
I have a unix machine in my network
I have its IP - xxx.xxx.xxx.xxx
I have its userID and pwd - uid=uid - pwd=pwd

I need to access this machine from my java class.
I need to read a file from this machine.

PS: I do not want to map the machine on my drive and access it.

Please guide
Archana Honnavalli
Ranch Hand

Joined: Feb 26, 2008
Posts: 39
Using this approach for the same
Here i am able to connect but telnet.login hangs and eventually "socket exception-connection abort" is shown

But same user id is working if i access unix system extenally



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

Moved to the Beginner Java forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19670
    
  18

And closed because it's a duplicate of this.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Access unix machine to read and save a file- from java code - Unix machine IP, userID, pwd given