Wednesday, 19 August 2015

Execute Linux commands from Java

Execute Linux commands from Java
Sometime you may get an requirement where you need to run Linux commands inside java program.
For ex: suppose you have to run some script file,so you need to run using sh command of Linux.