Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfexecute process hangs

New Here ,
Dec 20, 2012 Dec 20, 2012

I'm using CF 8 and have a simple script that uses cfexecute to invoke a FoxPro executable that resides on the server.  The server is a Windows 7 machine, and when I call the script from the browser I can see the process running in Task Manager but it is hung and doesn't do anything.  I have to manually kill it.  No errors are being generated that I am aware of - no errors reported in the Event Viewer or in Process Monitor.  Coldfusion is running the process under the System account, so I think it should have plenty of privileges.  The cfexecute statement is:

    <cfexecute name = "C:\Temp\Simple.exe"

        arguments = ""

        outputfile="c:\temp\Simple.log"

        timeout = "30">

    </cfexecute>

Any help will be appreciated.

780
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 02, 2013 Jan 02, 2013
LATEST

You say "System Account" which account is that? I have found that most of the time these issues have to do with permissions, try running the CF Process in an Administrator account and see if that works.  Also double check that the running simple.exe from command line works.

I have also found that if it is a program that is designed to run from command line you need to cfexecute cmd rather than the program directly.

<cfexecute name="C:\WINDOWS\system32\cmd.exe" arguments="/c C:\Temp\Simple.exe" variable="return" timeout=30></cfexecute>

<cfoutput>

<pre>

--- Message from Simple.exe----

#return#

--- End Message from Simple.exe----

</pre>

</cfoutput>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources