Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (6) </ 1 [2] 3 4 5 6 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Beta testers needed, bash script testing< Next Oldest | Next Newest >
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 26 2008,01:55 QUOTE

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.
Back to top
Profile PM 
WDef Offline





Group: Members
Posts: 798
Joined: Sep. 2005
Posted: Jan. 26 2008,02:00 QUOTE

Does this script need to run on non-GNU systems?
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Jan. 27 2008,21:02 QUOTE

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.


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
humpty Offline





Group: Members
Posts: 655
Joined: Sep. 2005
Posted: Jan. 28 2008,16:54 QUOTE

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`
Back to top
Profile PM 
Zucca Offline





Group: Members
Posts: 524
Joined: Feb. 2006
Posted: Jan. 28 2008,17:50 QUOTE

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. ;)


--------------
Do you have it? - http://dy.fi/mak
Back to top
Profile PM WEB ICQ MSN 
28 replies since Jan. 24 2008,16:16 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (6) </ 1 [2] 3 4 5 6 >/
reply to topic new topic new poll
Quick Reply: Beta testers needed

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code