House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Linux (CF-Linux)

Problem with ColdFusion EXecute

Author:
Mark Kruger
01/28/2010 10:42 PM

Ok folks, I have a difficult problem and googling does not seem to help. I have the following code that uses Cfexecute to run the "/conver/" script of the open source "image magic" code. I've successfull installed imagemagic from source. Here's the code: <cfexecute name="#pathToImageMagick##executableFile#"          arguments="#replace(actionString, '"', '', "All")#" timeout="#timeout#">       </cfexecute> This produces the following command line.... /usr/local/bin/convert /var/www/clients/site.com/html/userpics/1979385/p1010022.jpg -geometry 80x80+0+0> /var/www/clients/site.com/html/userpics/1979385/sm/p1010022.jpg The name part is "/usr/local/bin/convert" and the rest is the "arguments" part (watch for wrapping). I took this command string and ran it from the command line as root and it worked. I then used "sudo -u nobody" to run it again successfully... so the code is correct - or at least it works from the command line. I've tried fooling with the ownership of the /userpics directory but I don't really think that's the problem because the CFFILE action works fine and creates the initial file. Anyway - does anyone have any advice about working with the cfexecute tag? What should I be looking for? -Mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com <http://www.cfwebtools.com/>; www.coldfusionmuse.com <http://www.coldfusionmuse.com/>; <http://www.necfug.com/>; www.necfug.com


Search cf-linux

February 11, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29