Thanks Guys. That helped me. But I have another problem. The actual script to run is as follows.
su - omidevl -c “/opt/omi/utility/scripts/uuts702 WPUJ130”.
I had problems in java for the double quotes. I used the escape character and finally I could get the command string into the method. Runtime.getRuntime().exec().
But it is not executing it and returns the code 0f 1.
I added the string to the pipeline.
When I copied the same and run on the console it runs fine.
So, in Runtime.getRuntime().exec() method it is getting confused.
Then I created another script to hold the entire command ran that script alone. It worked fine.
But I want to know, why it is not working when I pass the whole string to exec() method.
Thanks,
Venkat
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services