Quantcast
Channel: Comments on: BTTB: looping for shell script under embedded linux
Browsing all 19 articles
Browse latest View live

By: flash_sh

Hi, when you mentioned some optimization… (System is running on 2 CPUs.) NOT BAD: time { for i in /proc/[0-9]*; do pid=`basename $i`; done } real 0m0.706s user 0m0.292s sys 0m0.464s ?? BETTER: time {...

View Article



By: flash_sh

If test (“[") is not shell built-in, then one test is faster than two tests... [ $pid -ge $START -a $pid -le $END ] Lukas

View Article

By: mysurface

Thanks Lukas, your optimization is awesome. :)

View Article

By: cdaaawg

First of all, thanks for the great tips on using /proc for getting process info, this post was very helpful in helping me understand the internals of Linux. I tested the command line you proposed for...

View Article

By: mysurface

@Carl, you can try the one suggested by Lukas too. simply: cd /proc cat [0-9]*/stat | cut -d” ” -f1,2,14,15 if range is not important for you. or cd /proc for i in [0-9]*; do if [ $i -ge $START -a $i...

View Article


By: cdaaawg

Just a heads up on how the website handles code. What appears to be double quotes in the last line of code: done | cut -d” ” -f1,2,14,15 is something else (“smart” quotes??), thus making cut and paste...

View Article

By: mysurface

@Carl, must be the html unicode, unless the code put into <pre><code></code></pre>

View Article

By: Lashaun Messey

Hey very nice blog!! Man .. Excellent .. Amazing .. I will bookmark your web site and take the feeds also…I am happy to find numerous useful information here in the post, we need work out more...

View Article


By: Samuel

Really nice blog, and helpful discussions. thanks for posting.

View Article


By: beats pill pas cher

l’ordre de los angeles même façon, Une license portant sur l’utilisation d’une strategy déterminée peut offrir des possibilités intéressantes aux entreprises qui travaillent à los angeles understanding...

View Article

By: clé windows 7

This standard become too popular in the computer world and is mostly followed in connection wuth all peripheral devices like mouse, keyboards, printers, digital video camera, external drives etc....

View Article

By: RaspberryPi Linux

Very interesting. I love embedded systems. I created my own LED lamp based on RaspberryPi and work excellently. Here is a video: http://rootconsole.net/my-led-cube/

View Article

By: the division darkzone power leveling

Great looking internet site. Presume you did a bunch of your ownyour very own html coding

View Article


By: nba mt coins

Rather educational, looking forward to visiting again

View Article

By: Rap Music

Great article again. Thank you!

View Article


By: madden nfl 17

You’re a very useful internet site; could not make it without ya! madden nfl 17 http://www.getzcope.com/forum/comments.php?DiscussionID=2597

View Article

By: princess ring pandora

相关的主题文章: It was amazing to be a part of it, and unlike anything I’ve ever experienced.Dining. Now is the time to get the financial commitment. Whether someone carries a backpack or the newest Louis...

View Article


By: drushbeats

awesome! Thanks for the article!

View Article

By: divorceMed

Divorce can be a major life change for each couple, but if you and your spouse have kids with them, you may feel as though your divorce is extra intricate. Child-raising can't be an afterthought in the...

View Article
Browsing all 19 articles
Browse latest View live




Latest Images