Tiny Core Linux
General TC => Programming & Scripting - Unofficial => Topic started by: Paulo on March 23, 2013, 07:18:12 PM
-
Hi all
Been using TC for about 2 weeks now and in that time not only have I learnt quite a bit about Linux
but also received lots of help from various forum members so now it's time to give something back.
I have written a simple five line script to monitor the battery level on a laptop which is now a permanent "feature" of my TC computer and hope it's of some use to others.
-
nice work thank you
-
You're welcome.
-
Hi,
Am new to Linux and TC as well. Want to install this Battery Monitor script. When I try to run the .sh file from command prompt, I get the error:
./battmon.sh: line 27: bc: not found
./battmon.sh: line 28: bc: not found
I don't know if am trying to install it the correct way. Here is how I run the battmon.sh file:
1. cd Desktop
2. chmod +x battmon.sh
3. sh ./battmon.sh
Please help. Thank you!
-
Hi pacchiee
You need to install bc-1.06.94.tcz
-
Thank you Rich, for the quick help..
Installed bc-1.06.94.tcz and now battmon.sh runs and gives the battery status in command prompt. Nice tool.
However, meanwhile I found 'flit' and installed it. Works fine for me as I always can see a battery monitor on my desktop.
Thanks again! :)