I don't have access to a unix box at work so this is just a guess, but you
could make a script file:

+===========================+
#!/bin/sh

cfstat > output.txt 2>&1

+===========================+

save it in the /opt/coldfusion/bin directory

$chmod u+x [filename]


then in cf load in the output file after executing.

<cfexecute
        name="/opt/coldfusion/bin/[filename]"
        timeout="5"
/>
<cfinclude template="/opt/coldfusion/bin/output.txt"/>


Shot in the dark.



-----Original Message-----
From: Chris Norloff [mailto:cnorloff@;norloff.com]
Sent: Thursday, November 14, 2002 12:53 PM
To: CF-Talk
Subject: Re: cfexecute under Unix?


This is what cfstat outputs. The call with cfexecute is not even writing the
cfstat.txt file, so something basic must be wrong.  I even tried just to get
the machine to ping an IP address ... no joy.

I think this might be related to shells, of which I know very little.

thanks,
Chris Norloff

Pg/Sec  DB/Sec  CP/Sec  Reqs Reqs  Reqs  AvgQ   AvgReq AvgDB  Bytes  Bytes
Now Hi  Now Hi  Now Hi  Q'ed Run'g TO'ed Time   Time   Time   In/Sec Out/Sec
0   0   0   0   0   0   0    0     30    0      816    407    0      0

---------- Original Message ----------------------------------
from: "William Wheatley" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Thu, 14 Nov 2002 15:24:03 -0500

>what output are you trying to get? you dont get any output from it on the
>screen but are you saying you're not getting the output into the cfstat.txt
>file?
>
>What are you expecting to see? What do you see when you go in from the
>command prompt
>
>----- Original Message -----
>From: "Chris Norloff" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Thursday, November 14, 2002 3:20 PM
>Subject: cfexecute under Unix?
>
>
>> I can't get cfexecute to run under Unix.  I can get it to "not error" but
>I can't get any output.  The commands work okay when I su to userid nobody,
>and permissions are okay on the directories.
>>
>> Any ideas?
>>
>> thanks,
>> Chris Norloff
>>
>> <cfexecute
>>   name="/opt/coldfusion/bin/cfstat"
>>   outputfile="/opt/coldfusion/log/cfstat.txt"
>>   timeout="5"
>> >
>> </cfexecute>
>>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to