Hi,
I have written a
java class that calls an shell script.And in the java class, I am accesing the EXIT value retrured by the shell.I am able to run this from the command prompt succesfully.
But,If once I make an instance of this class in a
JSP and invoke the method which actually calls the shell script, my script is not working. It is giving an exit code of 127:indicating the command not found.I am unable to resolve this.
I am using the
tomcat web server and running it in Linux platform.I have assigned all the rigths to the file.
Want to know whether tomcat has restriction imposed to call any scripts?
Overall, plz help me out.
I am an newbie in this field.
Thanks in advance!
Sandeep