tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <mailing-tomcat-u...@schoenhaber.de>
Subject Re: Rebooting server under program control
Date Tue, 23 Oct 2007 14:40:54 GMT
David kerber wrote:

> What would I need to do to give me the ability to reboot a windows 2003 
> server machine under the control of my TC 5.5 app (JRE 1.5)?  Is there a 
> java system call I can use, or do I need to call an external 
> routine/script to accomplish this?

I would be surprised if there was a standard Java function that shuts
down a machine.
On Win XP there's shutdown.exe which you could call via Runtime#exec. My
bet would be that shutdown.exe comes with Win 2003 too.

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message