LiveFire Labs - Online UNIX Training - Company Logo


Online UNIX Training with Hands-on Internet Lab


"Eliminate the expense and inconvenience of classroom training without eliminating the classroom experience."

 


Home
Internet Lab
Console Access
Sample Course

Student Login


LiveFire Labs' UNIX Tip, Trick, or Shell Script of the Week - View


Questions? Call
1.888.843.1637 or send us email





Co-processes - Part IV

The tip from last week covered the syntax for co-processes, and also used a short script to demonstrate how to start, write to, and read from a co-process.  If you missed it, you can view it here.

The objective of this week's tip is to get you thinking about what processing benefits can be gained from using co-processes.  Consider the following scenario...

You have a single program on a "master" UNIX or Linux server that needs to run once for every UNIX and Linux server in your environment.  When this program runs it collects data unique to each host that will be stored on the "master" server for additional processing.  This processing will be performed as soon as the data collection has completed for all servers.

If there was only a handful of systems in your environment you could just run a for loop within a shell script that runs the collection program against each host in a serial fashion.  If you had hundreds or thousands of servers in your environment, you would quickly discover that this would not be an acceptable solution if you had time constraints for the processing.

Think about how co-processes could be used to provide a more desirable option, and next week's tip will contain a potential solution.




Learn more...
  

If you are new to the UNIX or Linux operating system and would like to learn more, you may want to consider registering for LiveFire Labs' UNIX and Linux Operating System Fundamentals online training course.

If you already have a solid grasp of the fundamentals but would like to learn more about the Korn shell and basic and advanced shell scripting, taking our Korn Shell Scripting course will be beneficial to you.

Our innovative hands-on training model allows you to learn UNIX by completing hands-on exercises on real servers in our Internet Lab.


More Tips...

· 
Popular UNIX Tips from the Past

spacer Box Border
 

Receive the UNIX Tip, Trick, or Shell Script of the Week by Email


First Name:


Email Address:






   1.888.843.1637

Home - Contact us - Company info - Privacy Statement   

 
©2002-2004 LiveFire Labs.  All rights reserved.
Linux® is a registered trademark of Linus Torvalds, author and developer of this public domain operating system.
UNIX® is a registered trademark of The Open Group in the United States and other countries.