Another thing when working with CFEXECUTE is to turnoff the output to screen of the outside process. I have been caught many times on this where I get the outside process to give me something back and it tries to return it to screen and it tries and tries until is timesout.
Dave Adams CFUG Ottawa [EMAIL PROTECTED] wrote: >Is this the same way CFMX treats a timeout value in a <cflock> ?? > >At 04:10 PM 1/30/2003 -0800, you wrote: > > >>I don't think the issue you're having is a timeout issue. The problem with >>CFMX and CFEXECUTE is that the "timeout" attribute no longer works the way >>it's supposed to. In CF5 a timeout of 10 seconds meant that if your process >>didn't return within the allotted timeout an error would be thrown. >> >>In CFMX a timeout of 10 seconds means that you won't return from your >>process for 10 seconds! In other words, CFMX waits until the timeout value >>is reached before coming back from the CFEXECUTE. Very annoying. >> >>Did you have any luck with ImageMagick and files on the local hard drive? >>How about files in the same directory that ImageMagick is running in? You >>are using FULL paths on all filenames right? Are you using UNC paths or >>regular paths? >> >>Write me off list and I'll send you a copy of the code I'm using with >>ImageMagick. Maybe it will get you going in the right direction. >> >>-Novak >> >> >>----- Original Message ----- >>From: "Owens, Howard" <[EMAIL PROTECTED]> >>To: "CF-Talk" <[EMAIL PROTECTED]> >>Sent: Thursday, January 30, 2003 12:21 PM >>Subject: RE: ImageMagick and CFExecute >> >> >> >> >>>OK, I'll bite ... what's the timeout issue? >>> >>>After reading your suggestions, it occured to me that I had not tried >>>running CFExecute against a local file (instead of something off the >>> >>> >>network >> >> >>>drive), so I did that, and I got this error: >>> >>>An exception occurred when invoking an external process. >>> >>>Which I'm guessing might be related to this cryptic reference you make to >>>CFEXECUTE and TIMEOUT. >>> >>>I've search the macromedia site and the Web through google and found >>> >>> >>nothing >> >> >>>helpful ... also looked at the docs for CFMX. >>> >>>H. >>> >>> >>> >>> >>>>-----Original Message----- >>>>From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] >>>>Sent: Thursday, January 30, 2003 11:44 AM >>>>To: CF-Talk >>>>Subject: Re: ImageMagick and CFExecute >>>> >>>>Make sure that your CFMX server is set up with the appropriate >>>>permissions. >>>>Also, make sure you're aware of the TIMEOUT issue with CFEXECUTE tag in >>>>CFMX. I doubt that's your problem but once you get everything working >>>> >>>> >>it >> >> >>>>will probably be your next question. ;-) >>>> >>>>So, permissions would be the first thing I would check. >>>> >>>>I'm using CFMX, CFEXECUTE, and ImageMagic without any problems. >>>> >>>>-Novak >>>> >>>>----- Original Message ----- >>>>From: "Owens, Howard" <[EMAIL PROTECTED]> >>>>To: "CF-Talk" <[EMAIL PROTECTED]> >>>>Sent: Thursday, January 30, 2003 11:24 AM >>>>Subject: ImageMagick and CFExecute >>>> >>>> >>>> >>>> >>>>>I have an application I built on my CF 5.0 workstation (win2k), and it >>>>> >>>>> >>>>was >>>> >>>> >>>>>working fine (outside of cfschedule bugginess). >>>>> >>>>>I moved it to our new CFMX (win2k) machine, and I'm having some >>>>> >>>>> >>problems >> >> >>>>... >>>> >>>> >>>>>The application uses ImageMagick/GhostScript to convert PDFs to JPGs. >>>>> >>>>> >>>>It >>>> >>>> >>>>>called IM through CFExecute. >>>>> >>>>>I can run IM find through the command line ... put in the same exact >>>>>attributes that I'm using in my CFExecute tag, and everything works >>>>>perfectly. But with CFExecute, I get an error. >>>>> >>>>>Here is my CFExecute code and the error I get .... anybody got any >>>>> >>>>> >>>>ideas >>>>as >>>> >>>> >>>>>to what is going on (again, all of this works on my own machine, IM >>>>> >>>>> >>and >> >> >>>>GS >>>> >>>> >>>>>are installed correctly on the new machine, and I've confirmed all the >>>>> >>>>> >>>>path >>>> >>>> >>>>>and file names are correct)? >>>>> >>>>>CODE: >>>>><cfsavecontent variable="debugReport"> >>>>><CFEXECUTE >>>>> NAME="E:\ImageMagick-5.5.3-Q8\mogrify.exe" >>>>> ARGUMENTS="-format jpg \\webpdf\inserts\manual\test.pdf >>>>>\\webpdf\inserts\manual\test.jpg" >>>>> TIMEOUT="200"> >>>>></CFEXECUTE> >>>>></cfsavecontent> >>>>> >>>>> >>>>><cfoutput>#htmlcodeformat(debugReport)#</cfoutput> >>>>> >>>>> >>>>>ERROR: >>>>> >>>>>Error: /undefinedfilename in (and) >>>>>Operand stack: >>>>> >>>>>Execution stack: >>>>> %interp_exit .runexec2 --nostringval-- --nostringval-- >>>>>--nostringval-- 2 >>>>> >>>>> >>%stopped_push --nostringval-- --nostringval-- >> >> >>>>>--nostringval-- false 1 %stopped_push --nostringval-- >>>>>--nostringval-- >>>>>Dictionary stack: >>>>> --dict:1012/1123(ro)(G)-- --dict:0/20(G)-- --dict:67/200(L)-- >>>>>Current allocation mode is local >>>>>Last OS error: No such file or directory >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>Howard Owens >>>>>Internet Operations Coordinator >>>>>InsideVC.com/Ventura County Star >>>>>[EMAIL PROTECTED] >>>>>AIM: GoCatGo1956 >>>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>> >>>>> >>>>> >>>>> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4