On 10/31/07, jithesh <[EMAIL PROTECTED]> wrote: > > > hi, > > Yes i am running as a root user who has all privileges. The problem is i > am dynamically generating a shell script and trying to execute that > script... > > Is that a problem ?
It may be. You must make sure the script is executable and visible to the root user. Mike. thanks, > Jithesh > > Mike Horwitz wrote: > > > > On 10/31/07, jithesh <[EMAIL PROTECTED]> wrote: > >> > >> > >> Thanks for your response > >> > >> While executing my java program i am getting the error > >> "java.io.IOException: Permission denied " > >> But i am executing as a root user. > >> please help me. > > > > > > Are you sure? If you are running under Tomcat installed on Linux, it > > normally runs as its own user with extremely restricted rights. You > might > > try logging in as the Tomcat (or other web container) user and seeing if > > you > > can run the script. > > > > Mike > > > > Thanks > >> Jithesh > >> > >> > >> Peter Schneider-Manzell wrote: > >> > > >> > Do you get error messages or exceptions? > >> > > >> > 2007/10/30, jithesh <[EMAIL PROTECTED]>: > >> >> > >> >> > >> >> Hi, > >> >> > >> >> I am working with java in linux environment. I have to execute a > >> shell > >> >> script through my java class. > >> >> > >> >> I used runtime object to execute the script but its not executing. > >> >> my code is > >> >> > >> >> Runtime runtime = Runtime.getRuntime(); > >> >> String cmd= "/opt/gs.sh"; > >> >> runtime.exec(cmd); > >> >> > >> >> Please provide suggestion to overcome this problem. > >> >> > >> >> Regards > >> >> Jithesh > >> >> -- > >> >> View this message in context: > >> >> > >> > http://www.nabble.com/shell-script-in-java-tf4718365s2369.html#a13488290 > >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> >> > >> >> > --------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> >> For additional commands, e-mail: [EMAIL PROTECTED] > >> >> > >> >> > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/shell-script-in-java-tf4718365s2369.html#a13505658 > >> Sent from the AppFuse - User mailing list archive at Nabble.com. > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/shell-script-in-java-tf4718365s2369.html#a13506235 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
