This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
i want to write a linux script and execute that script in a java code. which is bestpractice to do it.
and my puropse for doing is i need to write on a file then i need to compare to another file and take the difference.
Are you worried about someone altering the script? I assume it's as well protected as the Java code, so it's as vulnerable to attack as that. What attack scenario, specifically, are you trying to guard against?
Rajesh Pattabi wrote:please see the below link for more information.
Remember, your job when asking a question is to make it as easy as possible for someone to help you. Posing a link, saying "here, go read this", and expecting someone to then read a (rather lengthy) article, and THEN come back and make a guess as to what exactly your question is...doesn't really make it all that easy.
So, can you explain here, in your own words, what problem you are trying to avoid?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors