It was a little bit since I modified a udf that I have that uses
imagemagick -- but I had a peek at the code now, and I implemented it
using arrays, and it seems to work. I remember having quite some
headaches, and also experimenting by cfexecuting a shell script that
would fix the arguments.
Oh, and this is on Sun -- not linux, but it should be the same thing.
/Hugo
--
Hugo Ahlenius
-------------------------------------------------------------
Hugo Ahlenius E-Mail: [EMAIL PROTECTED]
Project Officer Phone: +46 8 230460
UNEP GRID-Arendal Fax: +46 8 230441
Stockholm Office Mobile: +46 733 467111
WWW: http://www.grida.no
-------------------------------------------------------------
| -----Original Message-----
| From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
| Sent: Wednesday, April 20, 2005 18:57
| To: CF-Talk
| Subject: Any workaround for the 6.1 CFEXECUTE quote problem in
| attributes.
|
| I'm trying to run some imagemagick stuff on a linux 6.1 server, and
| I'm running into the problem with quotes not escaping properly in the
| "attributes" attribute. I think this is one of the reasons Alagad
| dropped the imagemagick tag.
|
| Bascially, I'm doing this:
|
| <cfexecute name="/usr/bin/identify" arguments="""-format %wx%h
| #fullPathToImage#""" variable="imageDimensions" timeOut="30" />
|
| And when the image name/path has a space, it breaks.
|
| I've tried quoting just around the filename, and around the whole
| attribute string as well. Nothing works.
|
| It all works just fine from the command line.
|
| I've searched and noticed references to a bug in Livedocs, and on
| Deja(google)News.
|
| Does anybody know of any workaround to get this to work (other then
| installing 7 or using some other image processing program)?
|
| Would it work to send the attributes as an array? I've never tried
| that, but saw reference to it in the CF docs.
|
| Thanks!
|
| Edward Smith
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203930
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54