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?
Joined: Apr 03, 2012
I'm worring for OS Command Injection, that will happen to my code.
thanks for your question to describe me much better.
Joined: Mar 22, 2005
Sorry, not following. What would the attacker do, exactly? TellTheDetails
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
subject: Bestpractice for writting linux script in a java code?