Hello,
I was wondering if someone could verify a nasty little bug or whatever with
ColdFusion MX 7 running on Linux. Every time I try this code on a system
running CFMX 7 on RHEL AS 3.0 w/ Apache the coldfusion server crashes. I
then tried it on Windows 2003 and it works just fine.

Thanks,
- Charles

Here is my test code ...

<cfset DestDir="/tmp"> <cfset theFile = #trim(DestDir)# &
"/devregdump2.tab"> <cfif FileExists("/tmp/devregdump2.tab") is "Yes">
<cftry>        <p>The File exists, now removing the devreg dump file.
<cffile action="Delete" file="/tmp/devregdump2.tab">    <cfcatch type="any">
<cfoutput>#cfcatch.Message#</cfoutput>        <cfabort>    </cfcatch>
</cftry> </cfif>  <cfftp connection="myConnection"    username = "ftp"
password = "ftp"    server = "aftp.server"    action = "open"
stopOnError = "Yes" > <cfftp     connection = "myConnection"    action =
"getFile"     name = "getDevRegFile"     transferMode = "binary"
localFile = "/tmp/devregdump2.tab"    remoteFile = "/pub/devregdump2.tab" >
<p>Did it succeed? <cfoutput>#cfftp.succeeded#</cfoutput> <p>Close the
connection: <cfftp connection = "myConnection" action = "close" stopOnError
= "Yes"> <p>Did it succeed? <cfoutput>#cfftp.succeeded#</cfoutput> <cfabort>
   <cffile action="Read" file="#trim(theFile)#" variable="rawData"> <table
border="1">    <cfloop index="index" list="#rawData#" delimiters="#chr(10)#"
>    <tr>        <cfoutput>            <td>(#index#)</td>        </cfoutput>
</tr>    </cfloop> </table>



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200064
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to