I'm trying to move a file from Java Application Server to DB Server. For that I'm using a shell script. To run the shell script, I'm using Process in Java File. While trying as a stand alone java(class file) in application server using putty, it's moving to DB server. But while trying from application, its not working and process.waitFor()
is returning 1.. Need Help.???
Code:
Process p = Runtime.getRuntime().exec("sh "+asyncFilePath+"/ManualAdjFileTransfer.sh "+asyncFilePath+ " "+destPath+" "+ destUserId + " " + destIp + " " + asyncFilePath + " ManAdj_File_Transfer.Log");
p.waitFor()