This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes how to check tomcat is running or not from a batch file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to check tomcat is running or not from a batch file" Watch "how to check tomcat is running or not from a batch file" New topic
Author

how to check tomcat is running or not from a batch file

seetharaman jayaraman
Ranch Hand

Joined: Feb 18, 2008
Posts: 43
hi all,
i have 2 servlets both starts tomcat. but, when the 2nd servlet is trying to start, it gets error (because it is already started by 1st servlet). So, here i need to check whether tomcat is running or not from a DOS batch file

Ex:
here the result of 'echo' command is stored in variable a. but it failed when i tried like this:


please do help

Seetharaman Jayaraman
Only Change is Changeless
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12999
    
    5
i have 2 servlets both starts tomcat.


What does that mean?? Tomcat is a container for servlets, servlets dont start the container they live in!

Bill
 
Have you checked out Aspose?
 
subject: how to check tomcat is running or not from a batch file
 
It's not a secret anymore!