If you can find a tool that will give you the utilization from the
command line you could use cfexecute to get it. Alternatively, you could
use COM to get at it.

I expect that there's something already in the system32 directory that
you could use, but I haven't tried it myself.

Spike

> -----Original Message-----
> From: Tom Walder [mailto:[EMAIL PROTECTED]] 
> Sent: 09 October 2002 18:57
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Determining CPU usage programmatically
> 
> 
> Hmmm... Win32 i am afraid
> 
> Hey Bill - why don't you add the /proc file system ???
> 
> 
> 
> At 12:53 09/10/2002 -0400, you wrote:
> >It wouldn't be quite that easy, you would probably have to 
> write a CFX 
> >tag to get it on windows.
> >
> >On unix you can get the load average with the uptime program (use 
> >CFEXECUTE). On linux you can get some stuff out of /proc (using 
> >CFFILE).
> >
> >_____________________________________________
> >Pete Freitag
> >CTO, CFDEV.COM
> >http://www.cfdev.com/
> >
> >-----Original Message-----
> >From: Tom Walder [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, October 09, 2002 12:44 PM
> >To: [EMAIL PROTECTED]
> >Subject: [ cf-dev ] Determining CPU usage programmatically
> >
> >
> >Does anyone know how to ( or if it can be done ) determine CPU usage 
> >programmatically
> >
> >eg
> >
> >something like
> >
> ><cfoutput>#server.cpuusage#</cfoutput>
> >
> >
> >Tom
> >
> >
> >--
> >** Archive: 
> http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> >
> 
> >To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> >For additional commands, e-mail: 
> [EMAIL PROTECTED] For 
> >human help, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >--
> >** Archive: 
> http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> >
> 
> >To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> >For additional commands, e-mail: 
> [EMAIL PROTECTED] For 
> >human help, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to