On Tue, Oct 19, 2010 at 09:00:16AM +1100, DaZZa wrote:
> The results from the third party software query are assigned as
> variables in the script and converted into round numbers as below
>
> free='/'
> total=''
Course they're not numbers if they look like '2.47T' or '25.40G'.
Do "df -k -P -T"
On Tuesday 19 October 2010 17:20:28 Malcolm Johnston wrote:
> I've copied the new libflashplayer.so to its plugin directory, but
> something is not working. I get a message that I need to download a new
> flashplayer from Adobe, but that's what I've done.
What is the message (the words, not the s
Hi
I've copied the new libflashplayer.so to its plugin directory, but something
is not working. I get a message that I need to download a new flashplayer
from Adobe, but that's what I've done.
Restoring the older *.so gets me back to par, so no damage has been done; it
seems, however, that I
On Tue, Oct 19, 2010 at 9:38 AM, wrote:
>> "DaZZa" == DaZZa writes:
> DaZZa> free='/' total=''
>
> DaZZa> free_var=$(free%.*); total_var=$(total%.*);
>
> DaZZa> per=$(($free_var*100/$total_var));
>
> DaZZa> The "per" figure is the one I'm interested in - percentage free
> DaZZa> space.
>
>
> "DaZZa" == DaZZa writes:
DaZZa> free='/' total=''
DaZZa> free_var=$(free%.*); total_var=$(total%.*);
DaZZa> per=$(($free_var*100/$total_var));
DaZZa> The "per" figure is the one I'm interested in - percentage free
DaZZa> space.
You need to do the calculation before rounding, and as sh
err, sorry, missed a closing quote
per=`echo "($free/$total) * 100" | bc -l`
On Tue, Oct 19, 2010 at 9:34 AM, Tony Sceats wrote:
> I think you want to use bc to calculate the percentage.
>
> the lines
>
> free_var=${free%.*};
> total_var=${total%.*};
>
> are removing everything after the deci
I think you want to use bc to calculate the percentage.
the lines
free_var=${free%.*};
total_var=${total%.*};
are removing everything after the decimal point, which leaves 2/2 * 100
which is of course 100%
I presume it does this so that bash can then perform the arithmetic
evaluation
per=$(($f
So, once again, do I just copy the new ``libflashplayer.so'' to the
plugin site in mozilla, change the permissions to root, and 0755, or
am I missing out something? Will I wreck my browser's flashplay
ability or something equally unthinkable?
Hi,
Yes just replace the libflashplayer.so with t
Learned denizens
$POE runs a system which is extensively Linux, and part of the system
is a small script which monitors the free space various devices using
some third party software.
The software isn't the issue - doing the math to work out the
percentage free is.
We're inth e middle of install