NEXT UP previous
Next: Answers

Exercises

  1. Create a pseudo code program skeleton for a server daemon which will allow multiple network client requests over a socket to be served concurrently.

  2. Write the code for a new command which can be used to launch another program as a daemon process. For example:

    	$ launch myprog param1 param2
    

    will execute the command myprog param1 param2 after setting up its environment so that it runs as a daemon. This will allow you to write commands in such a way that you can run them as ordinary commands while you are logged on, or run them as daemons so that they will continue to execute even after you logout.


NEXT UP previous
Next: Answers