Skip to content

Tag: tomcat

Cannot execute command as another user with sudo

I have this code, that is running on tomcat: And my script.sh file: From command line, the script is executed excellent and I see results. But when executing it from tomcat I get this message: I cannot solve this problem. I need your help. P.S: Sorry me for bad english. Thanks! Answer I guess that the problem…

Not able to stop the tomcat server in linux

I am trying to stop the tomcat server through linux command. using the above command is giving following error message : I have started the server using ./catalina.sh stop command. Answer I found the way to kill the server, first I found its process Id using : ps -eaf | grep tomcat then killed the required pr…