Re: Runtime exec (again)

2004-12-02 Thread andy wix
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

Re: Runtime exec (again)

2004-12-02 Thread Jeanfrancois Arcand
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-

RE: Runtime exec (again)

2004-12-02 Thread Shapira, Yoav
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

Re: Runtime exec (again)

2004-12-02 Thread Edward Barrow
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

RE: Runtime exec (again)

2004-12-02 Thread Allistair Crossley
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