Get Power Saving Settings of the Server

Get Power Saving Settings of the Server

am 19.04.2010 11:17:26 von kranthi

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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Get Power Saving Settings of the Server

am 19.04.2010 11:32:08 von Richard

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Get Power Saving Settings of the Server

am 20.04.2010 20:50:17 von kranthi

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php