On a SUN Solaris machine in MTF:

1. Download the IDL definition file, the procedure implementation file, and the client file.

2. Download the grades.

3. Compile the IDL defintion file.

  % rpcgen get_grade.x

Take a look at the files that are generated.

4. Compile the client.

  % gcc -o get_grade get_grade.c get_grade_clnt.c get_grade_xdr.c -lnsl

5. Compile the server.
  % gcc -o get_grade_svc get_grade_svc.c grade_proc.c get_grade_xdr.c -lnsl

6. Start the server at a Solaris machine called xyz.
  % get_grade_svc

7. Execute the get_grade as shown in the following example.
  % get_grade xyz 123

where 123 is the student ID whose grade is required.