Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Using Linux Text-Stream Filters � A Real-life Example

Jan 12, 2010, 16:32 (1 Talkback[s])
(Other stories by Donnie Tevault)

[ Thanks to Andrew Weber for this link. ]

"For me, the hardest part about teaching the LPI 101 course is teaching about text-stream filters. It's not that they're difficult to understand. It's just that showing the examples of how they work is easy, but showing examples of how they can be used in real life is a bit more challenging. Real-life examples from the Linux admin world are fairly complex, and are beyond the level that most beginning Linux students are able to grasp. So, in most LPI books, the student will see how these utilities work, but not how to use them.

"Text-stream filters can be used as stand-alone tools, if you have occasion to use them in that manner. But, you can also use them in scripts to solve problems, whether you're a Linux admin or just a home user. Here's an example of how I used text-stream filters to solve a long-standing problem on one of my home computers. (In fact, it's the computer that I'm using to type this.)

"This particular computer has a problem with CPU-overheating. If I try to run it at its full rated speed of 2.7 GHz with a room temperature above about 70 degrees or so Fahrenheit, the CPU temperature will soon climb up to 212 degrees, which will cause the computer to shut down."

Complete Story

Related Stories: