The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
TomCat access in an Remote Linux Server gothama UNIX for Dummies Questions & Answers 1 03-13-2008 06:17 AM
connecting to remote db from unix script DILEEP410 Shell Programming and Scripting 8 09-07-2007 01:56 AM
How can my unix shell script automatically connect to remote host? digdarshan Shell Programming and Scripting 8 06-29-2007 08:44 PM
Securing Tomcat under Linux/Unix starkis UNIX for Advanced & Expert Users 0 01-08-2007 09:04 AM
UNIX, remote access problem pdepa UNIX for Advanced & Expert Users 1 12-03-2003 12:54 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-07-2008
Registered User
 

Join Date: Feb 2008
Posts: 2
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.

I need it to terminate and return the result. Please help.
Reply With Quote
Forum Sponsor
  #2  
Old 02-07-2008
Smiling Dragon's Avatar
Disorganised User
 
Join Date: Nov 2007
Location: New Zealand
Posts: 734
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?
Reply With Quote
  #3  
Old 02-08-2008
Registered User
 

Join Date: Feb 2008
Posts: 2
Quote:
Originally Posted by Smiling Dragon View Post
We'll need a bit more information, for starters:
  • How are you remotly executing the script?
ssh -l user remote-address 'cd TOMCAT_HOME/bin; ./script.sh start'

Quote:
Originally Posted by Smiling Dragon View Post
  • Does the script normally start tomcat, move it to the background and quit or something else?
It normally starts tomcat, displays the usual output when tomcat starts, and just hangs there. the command running the script just does not quit.

Quote:
Originally Posted by Smiling Dragon View Post
  • What do you see being output from the script when it's failing to terminate?
The usual output of Tomcat starting
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:29 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0