I know that Macromedia has a "known issue" logged regarding the fact that
cfexecute in MX will not return control to the calling page once output is
recieved from the calling program, but will instead wait until the timeout
specified has expired. Does anyone know of any issue with cfexecute's
ability to generate output files using the "outputfile" attribute? I am
attempting to use the cfloop work around to insure that a process has
finished executing but I am not getting any outputfile created. I have set
the permissions appropriately so the user account that cf runs under owns
the directory it is attempting to write too but I recieve no output at all.
I am running a custom shell script that I wrote that does generate output
but I do not get a file created at all. The script executes just fine when
I set the timeout value to a high value(120+).
I am using the following code:
<cfexecute name="/rootpath/test-screen"
arguments="/rootpath/rawps/#cffile.serverfile#
/rootpath/pdf/lowres/#pdfName#"
timeout="120"
outputfile="/var/www.adserv.wedaconnect.com/log/lowres.log">
</cfexecute>
<cfset done = "false">
<cfloop condition = "done is 'false'">
<cfif FileExists("/rootpath/log/lowres.log")>
<cffile action="READ" file="#outputfile#" variable="filetext">
<cfif filetext contains "finished">
<cfset done = "true">
</cfif>
</cfif>
</cfloop>
Any ideas (other then downgrading to CF5, as that is not an option)? I am
running CFMX 6,0,0,55693, RH 7.2 with all the latest goodies.TIA!
Andrew Golden
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4