portal entry

select a category, or use search below
(searches all categories and all time range)
Title:

CFEXECUTE

| View in Portal
November 01, 2018 08:39:02 PM GMT
3 Comments
<p>Hey Guys, I was wanting to know if you all ever had this issue?  I created a .NET application that will convert an RTF to a PDF but if I Launch the EXE (as an administrator)   on the server it runs as designed, however when I run it via the CF webserver using CFEXECUTE the application won’t launch. Is there a security setting somewhere that I am not seeing.  The application I created has the “Run as administrator” checked for […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2018/11/cfexecute/">CFEXECUTE</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: ColdFusion 2016, Question, Windows Server 2016, ColdFusion, coldfusion 2016, question, windows server 2016

Comments:

Is ColdFusion running as a different user account?  We had a similar issue where CF ran as a local account so did not have access to run certain BAT or EXE files.
Comment by Tiberius
1375 | November 05, 2018 04:35:15 PM GMT
If you need to run something on the command line using a different user account on Windows, the only way I know how to do this is by using <a href="http://adiabata.com/cfx_exec.cfm" rel="nofollow">CFX_EXEC</a> from Adiabata, Inc.  We've also noticed that there are less orphaned/zombie processes hanging when using this C++ solution. I've noticed that some executables wants their local directory to be the "working" directory and CFExecute doesn't have any option to set this.  In addition to the "dir" option, CFX_EXEC has an "input" parameter in case you need to stream some extra commands (like "exit").  I've also used the DNS function to perform IP name resolution and it's much faster than the java equivalent (and respects TTL and doesn't permanently cache the result requiring a service restart).
Comment by James Moberg
1359 | November 05, 2018 06:08:24 PM GMT
Hi, The perl script runs fine from the command line but when I execute the same perl script using the coldfusion cfexecute it fails to run. It cannot find the methods used in the perl script like SelectAllEditableRanges, Bookmarks, InsertAfter. The script fails where ever this functions are called in the perl script. How do I run the perl script using cfexecute. Thanks.
Comment by hk24591112
3600 | January 04, 2020 10:45:42 PM GMT