Ian, Yes... I use <cfsavecontent> around it (actually this was already a part of the tag) but there does not appear to be any result.
-mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -----Original Message----- From: Ian Tait [mailto:[email protected]] Sent: Friday, January 29, 2010 7:50 AM To: cf-linux Subject: RE: Problem with CF EXecute Have you tried to capture the output to see whats happening? <cfexecute name="#pathToImageMagick##executableFile#" arguments="#replace(actionString, '"', '', "All")#" timeout="#timeout#" variable="LOCAL.output" errorVariable="LOCAL.error" /> Ian -----Original Message----- From: Mark Kruger [mailto:[email protected]] Sent: 29 January 2010 13:40 To: cf-linux Subject: RE: Problem with CF EXecute Rex, Ok.... But wouldn't "sudo -u nobody" from the command line show me if "nobody" did not have permissions? It's seems to work fine from the command line (and yes - cf is running as nobody). -Mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com -----Original Message----- From: rex [mailto:[email protected]] Sent: Friday, January 29, 2010 5:05 AM To: cf-linux Subject: Re: Problem with CF EXecute 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 > 80x80+0+0> .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:4529 Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
