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:
Ian Tait
01/29/2010 09:12 AM

Its quite possible. Ian Ian, Yes... I did that in order to construct the exact command line string. My thought was there is no default shell assigned to "nobody" - what do you think of that idea? -Mark Mark A. Kruger, CFG, MCSE (402) 408-3733 ext 105 www.cfwebtools.com www.coldfusionmuse.com www.necfug.com If you haven't already - try capturing those 2 vars - you might see something different than in savecontent. Ian 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 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 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 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 >   > > > >


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