Hi,
The shutdown command now works OK.
There have been a few issues with this that I didn't have in the right
combination.
The Tomcat service must have suitable permissions. To do this:
- Under control panel select Admin tools -> Services
- Right click Apache Tomcat service and select properties
Actually, take a look at:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
-- Jeanfrancois
Shapira, Yoav wrote:
Hi,
You would also want to give the full path to cmd.exe possibly, depending
on how you launch Tomcat.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
Hi,
You would also want to give the full path to cmd.exe possibly, depending
on how you launch Tomcat.
Yoav Shapira http://www.yoavshapira.com
>-Original Message-
>From: andy wix [mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 02, 2004 4:12 AM
>To: [EMAIL PROTECTED]
>Subject: Runtim
On Thursday 2 December 2004 09:12, andy wix wrote:
> Hi,
>
> Still can't get this to work.
>
> There must be some reason why this won't run under Tomcat but does work
> stand-alone.
> To recap, I am trying to execute the following code on an Xp box with
> Tomcat 5.0.27:
>
> Process proc = runtime.e
Hi,
I can't test this because shutdown is only a command on Windows XP it seems ...
that's what you're running right?
I did however try ipconfig and that works ..
<%
try {
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec("cmd.exe /C ipc