CFExecute doesn't seem to work

I am trying to minimize some files in a roll-up script using jsmin. This works very well on my local machine, but when I click on it it doesn't work at all. I am running the embedded CF development server locally and IIS in production. Not quite sure how I should debug this. Here is the relevant code snippet:

    <cfset LOCAL.args = '/c "C:\Inetpub\wwwroot\jsmin.exe < #LOCAL.jsfile#"'>
    <cfexecute name="c:\windows\system32\cmd.exe"
               arguments="#LOCAL.args#"
               timeout=10
               variable="LOCAL.jsmin">              
    </cfexecute>
+3
source share
2 answers

I think the problem was trying to run a 32-bit executable under a 64-bit OS, but I'm not quite sure. I could not get a good C compiler on my machine, so I got the Java source for JSMin and ran it using the ColdFusion JRE. It made him work.

+3
source

, , , .

CF, ? cmd.exe jsmin.exe?

..

+2

Source: https://habr.com/ru/post/1712823/


All Articles