We have the below lines of code in our application.
Process process = Runtime.getRuntime().exec("/usr/bin/sudo /opt/infra/bin/readPrivateKey.sh"); B