From: kranthi on
Hi all,
My PHP script is running as CLI. Can I get the Power Management
Settings of the server ?

I am using PHP 5.3.2 on Fedora 12 Machine (2.6.32.10-90.fc12.i686)


KK.
From: Richard on
Hi,

> My PHP script is running as CLI. Can I get the Power Management
> Settings of the server ?
>
> I am using PHP 5.3.2 on Fedora 12 Machine (2.6.32.10-90.fc12.i686)

Your server management software may provide a way to get this
information either through the command line or through a network
interface. SNMP may also provide this information, and ISTR there's a
PHP SNMP module. Enjoy... :-)

--
Richard Heyes
HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 10th April)
Lots of PHP and Javascript code - http://www.phpguru.org
From: kranthi on
>> Your server management software may provide a way to get this information either through the command line or through a network interface

Using exec('gconftool-2 -g
/apps/gnome-power-manager/timeout/sleep_display_ac') helped. Thanks