CFEXECUTE

November 1, 2018
Newbie 1 posts
Followers: 0 people
2

CFEXECUTE

Newbie 1 posts
Followers: 0 people
November 1, 2018

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 all users .. any ideas?  I am thinking the server is not launching the application as an administrator so it hangs…

Comments (2)
2018-11-05 18:08:24
2018-11-05 18:08:24

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 CFX_EXEC 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).

Like
2018-11-05 16:35:15
2018-11-05 16:35:15

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.

Like
Add your comment