Re: server shutdown

2004-11-28 Thread Dakota Jack
))> 0 ) { > System.out.print( (char)it); > } > System.out.println("Command \"" + cmd + > "\", exit code: " + p.exitValue()); > p.destroy(); > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > > Rega

Re: server shutdown

2004-11-28 Thread Bill Keese
> I am now only trying to run notepad from the exec command If you are trying to run a GUI program, than you have to check the "Allow service to interact with desktop" checkbox (from the "properties" page for the service). Maybe that's the problem. But if the same error occurs w

RE: server shutdown

2004-11-26 Thread Paul McCulloch
IL PROTECTED] > Subject: RE: server shutdown > > > Hi, > > I get the same results when Tomcat is not run as a service. > Does this mean > it must be the Tomcat security policy? > > Cheers > Andy > > ___

RE: server shutdown

2004-11-26 Thread andy wix
Hi, I get the same results when Tomcat is not run as a service. Does this mean it must be the Tomcat security policy? Cheers Andy _ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger -

RE: server shutdown

2004-11-26 Thread Paul McCulloch
gram running on your desktop. That option can only be set for the local system user - not adminsitartor. Paul > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: 26 November 2004 10:23 > To: [EMAIL PROTECTED] > Subject: RE: server shutdown > > > H

RE: server shutdown

2004-11-26 Thread andy wix
Hi, I have now set up the Tomcat service to run as administrator (temporarily) but this doesn't resolve the problem. I am now only trying to run notepad from the exec command: Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec("C:\\WINDOWS\\system32\\notepad.exe"); This code work

RE: server shutdown

2004-11-26 Thread Simon Matic Langford
VICE" which you can find (along with other users) by selecting "This account", then click "Browse..." then "Advanced..." then "Find Now". simon > -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: 26 Novem

RE: server shutdown

2004-11-26 Thread Paul McCulloch
; To: [EMAIL PROTECTED] > Subject: RE: server shutdown > > > Thanks for the input David. > It sounds like this must be the reason. I am running Xp with > Tomcat 5.0.27 > and Struts 1.1. > > I run Tomcat as a service - how do I find out (o

RE: server shutdown

2004-11-26 Thread andy wix
Thanks for the input David. It sounds like this must be the reason. I am running Xp with Tomcat 5.0.27 and Struts 1.1. I run Tomcat as a service - how do I find out (or set up) the permissions? Thanks, Andy _ Use MSN Messenger to se

RE: server shutdown

2004-11-25 Thread David G. Friedman
McCulloch [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 7:06 AM To: 'Struts Users Mailing List' Subject: RE: server shutdown It looks like you are getting the return code from cmd, rather than shutdown. Could it be that the process you spawn doesn't have it's en

RE: server shutdown

2004-11-25 Thread Paul McCulloch
; -Original Message- > From: andy wix [mailto:[EMAIL PROTECTED] > Sent: 25 November 2004 11:47 > To: [EMAIL PROTECTED] > Subject: OT: server shutdown > > > Hi, > > I have a requirement to allow a privelidged user to reboot > the server(WinXP >

OT: server shutdown

2004-11-25 Thread andy wix
Hi, I have a requirement to allow a privelidged user to reboot the server(WinXP OS). I have code as follows: Runtime runtime = Runtime.getRuntime(); Process proc = runtime.exec("cmd.exe /C shutdown -r -f -t 10"); int exitVal = proc.waitFor(); When called, the server does not shut down (although I