This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes reading a properties file from remote machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "reading a properties file from remote machine" Watch "reading a properties file from remote machine" New topic
Author

reading a properties file from remote machine

saikiran venkata
Greenhorn

Joined: Oct 31, 2010
Posts: 29

Hi All,

Excuse me if it is a repeated post,i searched but didn't get what i needed.

I want to read a properties file which is in a remote machine(Something like /opt/Test/one.properties) and have to update some XML file which also there in the same machine.
this is first time i encounter like this..came to know about JSch...but not sure where to start(JSch,ChannelSftp,Session)...
please provide any pointers to start or some sample code.

Thanks,


SCJP 1.6 | SCWCD 5
The earth is enjoyed by heroes—this is the unfailing truth. Be a hero. Always say, “I have no fear." ~Swami Vivekananda.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: reading a properties file from remote machine
 
Similar Threads
jsch file copy from Linux to Windows
Data class and server code
how to get free Disk Space on remote machine
How to read remote files on Unix Machine from Windows Local Host
Java remote paths