Skip to main content
May 31, 2012
Question

problem with cfexecute

  • May 31, 2012
  • 1 reply
  • 620 views

Hi there,

I have a problem with cfexecute on Red hat linux 6, i am executing the cat command to read the content and print the output parameter, however CF throws exception "Variable MYOUTPUT is undefined".

Here is my code

<cfexecute name="/bin/cat" arguments="sample_1.txt" variable="myoutput" errorVariable="errorInfo"></cfexecute>

<cfoutput>#myoutput#</cfoutput>

<cfdump var="#errorInfo#"><cfabort>

Any help is much appreciated.

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
May 31, 2012

arguments="sample_1.txt"

Try the full path instead.