View Single Post
  #9   (View Single Post)  
Old 12th January 2009
roddierod's Avatar
roddierod roddierod is offline
Real Name: Rod Person
VPN Cryptographer
 
Join Date: Apr 2008
Location: Pittsburgh, Pa
Posts: 437
Default

Python you could have done:

Code:
import commands

def CheckBattery():
  return commands.getstatusoutput("sysctl hw.acpi.battery.life")[1].split(:)[1]
__________________
"The basic tool for the manipulation of reality is the manipulation of words. If you can control the meaning of words, you can control the people who must use the words." -Philip K. Dick
Reply With Quote