Completed fall of 2021 as a part of Lehigh University's CSE 109: System Software.
All programs were written and optimized for X86-64 machines with gcc module 7.10.
Example call:
chkLinks merle 'notMyPassword' sunlab.cse.lehigh.edu /home/merle/WWW-data/cse109.fall2021/index.html
You will need to use your own userid and password.
But, you will need to pass the same 3rd and 4th arguments.
Some notes:
- Search only for "http" and "https" protocols.
- Ensure href has "://" after the protocol and before the server name.
- Place uniquely-named downloaded files into /tmp.
- Ensure downloaded files have the PID in their name so your files do not interfere with other students running their code.
- Remove any files created in /tmp when done (use unlink).
- Do not use global variables.
- Write modular code.