))> 0 ) {
> System.out.print( (char)it);
> }
> System.out.println("Command \"" + cmd +
> "\", exit code: " + p.exitValue());
> p.destroy();
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> Rega
> 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
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
>
> ___
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
-
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
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
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
; 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
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
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
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
11 matches
Mail list logo