Sorry,
My mail app did not preserve the mail message formatting...

<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="#DestDir#/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" existing=""
    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>

<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>


On 3/25/05 2:34 PM, "Charles Heizer" <[EMAIL PROTECTED]> wrote:

> 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>
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

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

Reply via email to