Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfexucute issue - restarting jrun

Status
Not open for further replies.

siituser

Programmer
Sep 30, 2002
67
CA
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top