Programming and Scripting :: Beta testers needed



1. fyi, from grep man page:
Quote
Suppress error messages about nonexistent or unreadable files. Portability note: unlike GNU grep, traditional grep did not conform to POSIX.2 , because traditional grep lacked a -q option and its -s option behaved like GNU grep's -q option. Shell scripts intended to be portable to traditional grep should avoid both -q and -s and should redirect output to /dev/null instead.

Does this script need to run on non-GNU systems?
Well I have one friend who might want to test this on Mac OS X.
I don't know even  if OSX has the /proc filesystem...
Anyway first priority is to get this working on Linux with minimal depencies.

it doesn't look like you actually need the decimal places,
you can probably get away with just integer arithmetic;
i.e
secs=`expr $totalsecs / 60`

I don't need it there.
I will need decimals where I calculate percentual value of non-idle time from uptime (that will replace -UPTIMELA-).
Perl seems to be quite neat solution anyways.

I just came from dentist and half of my face is numb... Also my thinking is at least 10 times slower... I'll be back again tomorrow. ;)

Next Page...
original here.