Re: Stop Tomcat Remotely

2003-09-28 Thread Henrik Vendelbo
What about Java Management Extensions (JMX) and MBeans. Perhaps they will do
it for you ?

- Original Message - 
From: Filip Hanik [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 10:28 PM
Subject: Re: Stop Tomcat Remotely


 I was under the impression, and this has maybe already been answered, that
 because of security issues, 8005 only accepts connections from the same
host

 Filip
 - Original Message -
 From: Allen Hadden [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 1:49 PM
 Subject: RE: Stop Tomcat Remotely



 If it's running as a Windows service, do this:

 (note that these instructions are for Windows 2000):

 1.  Right click on My Computer and select Manage.  The Computer Management
 window opens.
 2.  Right click on Computer Management and select the Connect to another
 computer...
 3.  Select the computer running the Tomcat service.
 4.  Go to Services and Applications  Services.  Find your service and
 stop it.

 Of course, there are Windows permission issues involved, but you
presumably
 have the appropriate permissions to do this.

 Hope this helps.

 Allen

  -Original Message-
  From: srinath narasimhan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 4:33 PM
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
 
 
 
  I tried that, one 8005 is not even open ( I don't know if
  this is because
  tomcat runs as a windows service )
  The documentation says that that can be done only from the
  local computer.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 15:20
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
 
 
 
  Howdy,
  And what happens if you telnet to the host where tomcat is running, to
  the port specified as the server port (not the connectors) in tomcat's
  server.xml, and type SHUTDOWN?
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: srinath narasimhan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 3:14 PM
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
  
  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]
 
 
 
 
  This e-mail, including any attachments, is a confidential business
  communication, and may contain information that is
  confidential, proprietary
  and/or privileged.  This e-mail is intended only for the
  individual(s) to
  whom it is addressed, and may not be saved, copied, printed,
  disclosed or
  used by anyone else.  If you are not the(an) intended
  recipient, please
  immediately delete this e-mail from your computer system and
  notify the
  sender.  Thank you.
 
 
  -
  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]
 
 

 -
 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]







-
To unsubscribe, e-mail: [EMAIL

RE: Stop Tomcat Remotely

2003-09-25 Thread Allen Hadden

You can still remotely stop the Windows service, regardless of the fact that Tomcat 
only listens on localhost:8005.  The two mechanisms are completely different.  You can 
stop any Windows service using the mechanism I described.

Allen

 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 24, 2003 5:29 PM
 To: Tomcat Users List
 Subject: Re: Stop Tomcat Remotely
 
 
 I was under the impression, and this has maybe already been 
 answered, that
 because of security issues, 8005 only accepts connections 
 from the same host
 
 Filip
 - Original Message -
 From: Allen Hadden [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 1:49 PM
 Subject: RE: Stop Tomcat Remotely
 
 
 
 If it's running as a Windows service, do this:
 
 (note that these instructions are for Windows 2000):
 
 1.  Right click on My Computer and select Manage.  The 
 Computer Management
 window opens.
 2.  Right click on Computer Management and select the 
 Connect to another
 computer...
 3.  Select the computer running the Tomcat service.
 4.  Go to Services and Applications  Services.  Find your 
 service and
 stop it.
 
 Of course, there are Windows permission issues involved, but 
 you presumably
 have the appropriate permissions to do this.
 
 Hope this helps.
 
 Allen
 
  -Original Message-
  From: srinath narasimhan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 4:33 PM
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
 
 
 
  I tried that, one 8005 is not even open ( I don't know if
  this is because
  tomcat runs as a windows service )
  The documentation says that that can be done only from the
  local computer.
 
  -Original Message-
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 15:20
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
 
 
 
  Howdy,
  And what happens if you telnet to the host where tomcat is 
 running, to
  the port specified as the server port (not the connectors) 
 in tomcat's
  server.xml, and type SHUTDOWN?
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: srinath narasimhan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 24, 2003 3:14 PM
  To: Tomcat Users List
  Subject: RE: Stop Tomcat Remotely
  
  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]
 
 
 
 
  This e-mail, including any attachments, is a confidential business
  communication, and may contain information that is
  confidential, proprietary
  and/or privileged.  This e-mail is intended only for the
  individual(s) to
  whom it is addressed, and may not be saved, copied, printed,
  disclosed or
  used by anyone else.  If you are not the(an) intended
  recipient, please
  immediately delete this e-mail from your computer system and
  notify the
  sender.  Thank you.
 
 
  
 -
  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]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail

Re: Stop Tomcat Remotely

2003-09-24 Thread Greg Ward
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]



RE: Stop Tomcat Remotely

2003-09-24 Thread srinath narasimhan
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]



RE: Stop Tomcat Remotely

2003-09-24 Thread Prabhat Kumar (IT)
I believe you can do that.

Telnet to port 8005 and issue a SHUTDOWN.

-Original Message-
From: srinath narasimhan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:14 PM
To: Tomcat Users List
Subject: RE: Stop Tomcat Remotely


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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stop Tomcat Remotely

2003-09-24 Thread Shapira, Yoav

Howdy,
And what happens if you telnet to the host where tomcat is running, to
the port specified as the server port (not the connectors) in tomcat's
server.xml, and type SHUTDOWN?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: srinath narasimhan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:14 PM
To: Tomcat Users List
Subject: RE: Stop Tomcat Remotely

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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Stop Tomcat Remotely

2003-09-24 Thread srinath narasimhan

I tried that, one 8005 is not even open ( I don't know if this is because
tomcat runs as a windows service )
The documentation says that that can be done only from the local computer.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 15:20
To: Tomcat Users List
Subject: RE: Stop Tomcat Remotely



Howdy,
And what happens if you telnet to the host where tomcat is running, to
the port specified as the server port (not the connectors) in tomcat's
server.xml, and type SHUTDOWN?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: srinath narasimhan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:14 PM
To: Tomcat Users List
Subject: RE: Stop Tomcat Remotely

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]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
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]



RE: Stop Tomcat Remotely

2003-09-24 Thread Allen Hadden

If it's running as a Windows service, do this:

(note that these instructions are for Windows 2000):

1.  Right click on My Computer and select Manage.  The Computer Management window 
opens.
2.  Right click on Computer Management and select the Connect to another computer...
3.  Select the computer running the Tomcat service.
4.  Go to Services and Applications  Services.  Find your service and stop it.

Of course, there are Windows permission issues involved, but you presumably have the 
appropriate permissions to do this.

Hope this helps.

Allen

 -Original Message-
 From: srinath narasimhan [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 24, 2003 4:33 PM
 To: Tomcat Users List
 Subject: RE: Stop Tomcat Remotely
 
 
 
 I tried that, one 8005 is not even open ( I don't know if 
 this is because
 tomcat runs as a windows service )
 The documentation says that that can be done only from the 
 local computer.
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 15:20
 To: Tomcat Users List
 Subject: RE: Stop Tomcat Remotely
 
 
 
 Howdy,
 And what happens if you telnet to the host where tomcat is running, to
 the port specified as the server port (not the connectors) in tomcat's
 server.xml, and type SHUTDOWN?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: srinath narasimhan [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 3:14 PM
 To: Tomcat Users List
 Subject: RE: Stop Tomcat Remotely
 
 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]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is 
 confidential, proprietary
 and/or privileged.  This e-mail is intended only for the 
 individual(s) to
 whom it is addressed, and may not be saved, copied, printed, 
 disclosed or
 used by anyone else.  If you are not the(an) intended 
 recipient, please
 immediately delete this e-mail from your computer system and 
 notify the
 sender.  Thank you.
 
 
 -
 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]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Stop Tomcat Remotely

2003-09-24 Thread Filip Hanik
I was under the impression, and this has maybe already been answered, that
because of security issues, 8005 only accepts connections from the same host

Filip
- Original Message -
From: Allen Hadden [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 1:49 PM
Subject: RE: Stop Tomcat Remotely



If it's running as a Windows service, do this:

(note that these instructions are for Windows 2000):

1.  Right click on My Computer and select Manage.  The Computer Management
window opens.
2.  Right click on Computer Management and select the Connect to another
computer...
3.  Select the computer running the Tomcat service.
4.  Go to Services and Applications  Services.  Find your service and
stop it.

Of course, there are Windows permission issues involved, but you presumably
have the appropriate permissions to do this.

Hope this helps.

Allen

 -Original Message-
 From: srinath narasimhan [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 4:33 PM
 To: Tomcat Users List
 Subject: RE: Stop Tomcat Remotely



 I tried that, one 8005 is not even open ( I don't know if
 this is because
 tomcat runs as a windows service )
 The documentation says that that can be done only from the
 local computer.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 15:20
 To: Tomcat Users List
 Subject: RE: Stop Tomcat Remotely



 Howdy,
 And what happens if you telnet to the host where tomcat is running, to
 the port specified as the server port (not the connectors) in tomcat's
 server.xml, and type SHUTDOWN?

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: srinath narasimhan [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 24, 2003 3:14 PM
 To: Tomcat Users List
 Subject: RE: Stop Tomcat Remotely
 
 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]




 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is
 confidential, proprietary
 and/or privileged.  This e-mail is intended only for the
 individual(s) to
 whom it is addressed, and may not be saved, copied, printed,
 disclosed or
 used by anyone else.  If you are not the(an) intended
 recipient, please
 immediately delete this e-mail from your computer system and
 notify the
 sender.  Thank you.


 -
 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]



-
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]