## Exercise 2

 1. Write a shell script that:
    a. listens, using netcat, on port 2222
    b. someone (e.g. you from another terminal) will send a message
       to that port, in this form: ‹host1 host2 port›
    c. fetch, using ‹http› the ‹/› document from ‹host1› (see also
       below)
    d. send the result to ‹host2› on port ‹port›
    
 2. You can use a temporary file and ‹cut› to extract the
    information.
 3. To fetch a document using HTTP, you simply send ‹GET /› on port
    80, like this: ‹echo GET / | nc www.fi.muni.cz 80›.

This is almost all for the user part. We will have a brief look at
‹ssh› and ‹curl› before we delve into C again.

Continue to:

    $ micro ssh.sh
