If tomcat is running as a service, and you have an administrator account on the machine (It's terribly difficult to give other users access to start/stop services) you can start and stop the service in a number of ways.
>From a batch file I use netsvc.exe from the Windows 2000 Server resource Kit http://www.microsoft.com/windows2000/techinfo/reskit/default.asp But you don't need that to do it interactively; Start->Run->MMC Ok Console->Add/Remove Snapin->Add->Services Choose "Another Computer" and specify the remote computer name. Close->Ok. Open the services tree and start/stop your service. If you _really_ want to get privledges on your user account, this article describes the convoluted way to do it (Group policies probably doesn't apply, and Method 2 works for W2K even though this article is for W2003 Server) http://support.microsoft.com/default.aspx?scid=kb;en-us;325349 Then you'd still do the mmc thing above, but you could only start/stop that service. ._. Brian -----Original Message----- From: mde [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 7:41 PM To: Tomcat Users List Subject: remote restart of server Hi all, This is probably an OS question, not a Tomcat one, but possibly some of you may have had to do this. I have tomcat 4.1.24 running on a Win2K server on which I have partial access, meaning that tomcat's base directory has been shared to me. I have no other access to this computer (no pc anywhere, for example). I need to be able to run a startup script on this machine, remotely. But so far I can't get it to work. If I run startup.sh from the shared drive, it just starts up my local version of tomcat because it's treating that share just like another drive on my computer. I have ColdFusion running on that server, too, and so I wrote a stop/start batch file and then had ColdFusion execute it, but that didn't work, either (although it did work on another machine). So, basically: how can I cycle tomcat remotely, given that I have access to Tomcat's root directory but nothing more? Thanks. -M --------------------------------------------------------------------- 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]
