aspose file tools*
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: 12835
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to check tomcat is running or not from a batch file