Problem with Unix script to start remote Tomcat

I have Tomcat installed on a Unix box and I need to start it remotely from another Unix box.

Tomcat is started using a script. When this script is run locally everything is fine. When I run the same script from remote box, tomcat starts but the command running the script does not terminate.:frowning:

I need it to terminate and return the result. Please help.

We'll need a bit more information, for starters:

  • How are you remotly executing the script?
  • Does the script normally start tomcat, move it to the background and quit or something else?
  • What do you see being output from the script when it's failing to terminate?

ssh -l user remote-address 'cd TOMCAT_HOME/bin; ./script.sh start'

It normally starts tomcat, displays the usual output when tomcat starts, and just hangs there. the command running the script just does not quit.

The usual output of Tomcat starting