cfexecute weirdness
Related Categories: ColdFusion MX
I ran across an interesting "quirk" using CFexecute today...
When I run this code:
<cfdump var="#bar#" />
...I get the error that "variable 'bar' is undefined".
...however if I use the "outputfile" attribute instead of "variable", I do indeed get the results I want.
After some discussion on the BACFUG list, it seems that the "timeout" attribute is required:
...but if I don't include it, CF will happily compile and run the code, even if it's not able to populate my variable properly. :)
C++ (3) [RSS]
CF9 Wishlist (2) [RSS]
ColdFusion MX (37) [RSS]
Flex (5) [RSS]
General (32) [RSS]
JavaScript (2) [RSS]
Mac (1) [RSS]
Music (5) [RSS]
Programming (43) [RSS]
VMWare (2) [RSS]
Fair-weather User Group Attendees
Sean Corfield said: What we do at BACFUG is: raffle off "schwag" (silly stuff) at each meeting and roll all en...
[More]
CF9 Wishlist Addition: CFDocument type="WordDoc|RTF"
TJ Downes said: Hey Nolan, you should check out Microsoft's XML formats for Word docs. We use their SpreadsheetML fo...
[More]
Fair-weather User Group Attendees
TJ Downes said: Bummer John, I was going to come just to try to win a "bug prize" :(
[More]
Fair-weather User Group Attendees
Kevin Stohlmeyer said: I use my attendance from the previous meetings as their entry in the drawing. I also do the "we...
[More]
Fair-weather User Group Attendees
John Whish said: ...my previous comment should read "big prizes" not "bug prizes" :)
[More]





Quote:
timeout
Optional
0
Length of time, in seconds, that ColdFusion waits for output from the spawned program.
0: equivalent to nonblocking mode.
A very high value: equivalent to blocking mode.
If the value is 0:
ColdFusion starts a process and returns immediately. ColdFusion may return control to the calling page before any program output displays. To ensure that program output displays, set the value to 2 or higher.
If the outputFile attribute is not specified, any program output is discarded
Thanks for the clarification.