This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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.
 
GeeCON Prague 2014
 
subject: reading a properties file from remote machine