Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Toggle Bluetooth setting based on power source' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Toggle Bluetooth setting based on power source
Authored by: maclaxguy on Aug 04, '09 08:50:29AM
Nice script, thanks! It looks like the escapes on the word characters were removed from your post , i.e. should be:
PREVIOUS_SOURCE=$(pmset -g ps | perl -ne '/(\w+) Power/ && print $1');
CURRENT_SOURCE=$(pmset -g ps | perl -ne '/(\w+) Power/ && print $1');

[ Reply to This | # ]