And CF runs as the nobody user, correct?

Try running CF as root and see if that works.  If it does, it's a 
permission issue with the nobody user (maybe nobody has permissions to 
execute convert).  If it does not, it may be an issue with cfexecute or 
something else.

Mark Kruger wrote:
> 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
>  
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: http://www.houseoffusion.com/groups/cf-linux/message.cfm/messageid:4526
Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.14

Reply via email to