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
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 environment correctly set up - maybe it can't see shutdown? I'd try 1) changing my call to exec to call shutdown, with a full path, directly rather than getting cm