Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I want to write a shell script (preferably a Bourne Shell script) that allows me to fork and run certain number of processes for a given period (t) of time. If you haven't got my point yet, let me explain it briefly. The purpose of my experiment is to compare the performance of two different routing protocols (one is mine and the other is somebody else's) in our wireless Linux-based testbed in terms of their power-efficincy. Hence, the idea is to test the performance with the same VoIP (gphone) application under each routing protocol for a given period of time, while keeping all the other environmental settings the same. I have written a special software that periodically monitors as to how many packets have been sent and received in the whole 6-node testbed and how much energy has been depleted. For this purpose, I need to run each routing protocol, gphone and other processes for "t" hours and then stop them. Can somebody please let me know how this can be performed using a script. I have come up with a follwing script: