Well sometimes you have no choice or its not in your hands to decide. I know it can be done in unix. It can be done in windows as well if you enable telnet or using WMI scripts ( those involve other security rights issues same as in unix). What I was expecting is somehow make a socket ( telnet ) connection to a port on which the tomcat server is listening ( not 8080 ) and send a command.
Thanks. -----Original Message----- From: Greg Ward [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 14:52 To: Tomcat Users List Subject: Re: Stop Tomcat Remotely On 24 September 2003, srinath narasimhan said: > Is there any way to stop tomcat from remote computer ? > Tomcat is run as windows service. Well, how do you normally run commands remotely with Windows? If the server is a Unix box, you could do this: ssh [EMAIL PROTECTED] "$CATALINA_HOME/bin/catalina.sh stop" or even this: ssh [EMAIL PROTECTED] "echo SHUTDOWN | nc localhost 8005" If Windows doesn't have a way to execute commands remotely, what on earth are you doing using it as a server OS? Greg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]