freelanceprogrammers.org Forum Index » Cold Fusion

Re: Using <cfexecute


View user's profile Post To page top
mcolav Posted: Thu May 05, 2005 9:36 pm


Joined: 05 May 2005

Posts: 1
Re: Using <cfexecute
Hi all,

I`m trying to run this command via <cfexecute but I get an error in the
output file. This runs just fine from a telnet prompt typed in manually
but fails within CF. Why? How do I get this to work?

<cfexecute name = "find.exe"
arguments = "D:/reports/aclg -name `*.111` -exec grep `187;` `{}`
; -print"
outputFile = "E:Inetpubwwwrootinterfacexxx.txt"
timeout = "1000">
</cfexecute>

This is the error in the log file.

File not found - `*.111`
Reply with quote
Send private message
View user's profile Post To page top
sandersfred Posted: Fri May 06, 2005 12:55 pm


Joined: 02 May 2005

Posts: 11
Re: Using <cfexecute
Your going to have to make a findrpt.cmd batch file.
find D:/reports/aclg -name `*.111` -exec grep `D:/reports/aclg -name `*.111`
-exec grep `187;` `{}` ; -print

and then:
<cfexecute name="pathtofindrpt.cfm" outputFile="E:
Inetpubwwwrootinterfacexxx.txt" timeout="30">

I changed the timeout to 30 seconds, Even if your first attempt listed below
actually did work, I don`t know of all that many browsers (much less users)
that would wait 1000 seconds for a page request to process. without timing
out.

Fred T. Sanders

On Thursday 05 May 2005 12:36, mcolav wrote:
> Hi all,
>
> I`m trying to run this command via <cfexecute but I get an error in the
> output file. This runs just fine from a telnet prompt typed in manually
> but fails within CF. Why? How do I get this to work?
>
> <cfexecute name = "find.exe"
> arguments = "D:/reports/aclg -name `*.111` -exec grep `187;` `{}`
> ; -print"
> outputFile = "E:Inetpubwwwrootinterfacexxx.txt"
> timeout = "1000">
> </cfexecute>
>
> This is the error in the log file.
>
> File not found - `*.111`
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help