November 1, 2018
CFEXECUTE
Comments
(3)
November 1, 2018
CFEXECUTE
Newbie 1 posts
Followers: 0 people
(3)

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…

3 Comments
2020-01-04 22:45:42
2020-01-04 22:45:42

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.

Like
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 Comment