We help IT Professionals succeed at work.

cfexecute Issue After Migration From 4.5.1 to MX 7....

MedtronicVascSR
on
Medium Priority
463 Views
Last Modified: 2013-12-24
Hi, I've read a similar post on this issue for version 6.1
(http://www.experts-exchange.com/Web/WebDevSoftware/ColdFusion/Q_21576599.html)
but the accepted answer didn't work for us so I'm posting our issue. In a nutshell the cfexecute stopped functioning properly after the migration from CF ver 4.5.1 to MX 7. The web server is 2003. We've verified that we can run the bat file from the command prompt on the server with the expected results. We've also added in the timeout variable per a post suggestion as well but to no avail. Here's the code chunk from 4.5.1:

<cfexecute
      name="D:\java\lib\ereq\basicSSH.bat"
      arguments="ereqtf ereqdh2 IPXXX.XX.X.XXX/export/home/ereqtf/ereq"
      outputfile="D:\java\lib\ereq\ereqtf.out"
</cfexecute>

Basic modification we've tried with a number of variations:
<cfexecute
      name="C:\WINNT\system32\cmd.exe"
      arguments="D:\java\lib\ereq\basicSSH.bat basicSSH ereqtf ereqdh2 IPXXX.XX.X.XXX/export/home/ereqtf/ereq"
                timeout="5"
      outputfile="D:\java\lib\ereq\ereqtf.out"
</cfexecute>

Any other thoughts\tricks\workarounds?

Thanks,
Ty


Comment
Watch Question

Commented:
We had similar issues and couldn't get it worked out.  We tried out the custom tag, CFX_EXEC, and it has worked for us.  You can get it here:

http://www.cftagstore.com/tags/cfxexec.cfm

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
Thanks for the tip. Worked right out of the box without any fussing around!

Ty
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.