))> 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
; -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
>
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
12 matches
Mail list logo