• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

what is the command to find out whether or not Tomcat is installed on your server

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All:
I am not very familiar with Unix OS, Let us say, after i logged in to my unix account,
what is the command i should use to find out whether or not TomCat is installed??

please let me know..

Many thanks..
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, you might find out if it's running with something like

ps -ef | grep catalina

If you get back a line that says anything other than "grep catalina", then it's probably running.

If it's not running, then you might start searching around. Try

ls /usr/local

to see if there's an "apache-tomcat-XXX" directory in the standard install location. If you don't care about making the admin mad, a last resort might be

find / -name catalina.sh -print

which will give you the path to catalina.sh (in Tomcat's bin directory) if Tomcat is installed anywhere you're allowed to look. This command might run for a long time.
 
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check if any of the following gives you some valid path.

echo "$CATALINA_HOME"

echo "$TOMCAT_HOME"
[ February 20, 2006: Message edited by: Deep Narsay ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic