|
Mailing Lists
|
Home / Groups / ColdFusion Linux (CF-Linux)
Problem with ColdFusion EXecuteOk 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 |
February 11, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||