[EMAIL PROTECTED] wrote:

> I want to restart CF on box A from
> box B using CF everytime the service crashes on box A. I tried it with
> cfexecute, running a mapped drive K on box B with the following:
> <CFEXECUTE NAME="K:\winnt\system32\cmd.exe" ARGUMENTS="K:\cfusion\bin\cycle_new.bat" 
>Timeout="120">
> </CFEXECUTE>

That won't work, because CFEXECUTE is executing the command locally even 
if the script resides on Box B.

One possible solution (already mentioned) was to use some kind of remote 
admin tool.

Another potential solution would be to write a perl script to restart 
the CF Service, using a CFHTTP call on Box A to call the perl script 
residing on Box B via the web.  But you'd have to somehow get the perl 
script to run as a user with privileges to restart services, and that 
sounds like a security risk.  But might be worth looking into.

  - Rick


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to