I'm trying to use CFEXECUTE to restart JRUN on a different server. The following code will restart JRUN.exe on the same server it is called on.
<cfexecute
name='C:\WINDOWS\SYSTEM32\cmd.exe'
arguments='/c "TASKKILL /F /IM jrun.exe"' />
If I run TASKKILL /S servername /F /IM jrun.exe in a cmd prompt, it will restart the JRUN on a different server.
BUT... when I run
<cfexecute
name='C:\WINDOWS\SYSTEM32\cmd.exe'
arguments='/c "TASKKILL /S servername /F /IM jrun.exe"'
/>
the serice does not restart, nor do I get an error. Does anyone know what I'm doing wrong? How else can I restart JRUN on a different server programatically?
Thanks.
<cfexecute
name='C:\WINDOWS\SYSTEM32\cmd.exe'
arguments='/c "TASKKILL /F /IM jrun.exe"' />
If I run TASKKILL /S servername /F /IM jrun.exe in a cmd prompt, it will restart the JRUN on a different server.
BUT... when I run
<cfexecute
name='C:\WINDOWS\SYSTEM32\cmd.exe'
arguments='/c "TASKKILL /S servername /F /IM jrun.exe"'
/>
the serice does not restart, nor do I get an error. Does anyone know what I'm doing wrong? How else can I restart JRUN on a different server programatically?
Thanks.