These classnotes are depreciated. As of 2005, I no longer teach the classes. Notes will remain online for legacy purposes

UNIX01/Schedule A User Event

Classnotes | UNIX01 | RecentChanges | Preferences

As the student user, create two scripts which will mirror a website as specified in the "/Mirror A Website" project.

Have the first script mirror the main page of http://www.linux.org/ (only 1 level deep), or any other web-site of your choice. Have the mirror dump into /home/student/mirrors/1/. Call this script "mirror_1deep". Run the script, and verify that it works.

Have the second script mirror the same site as above, but this time go 3 pages deep. Have the second script dump the mirror into /home/student/mirrors/2/. Call this script "mirror_3deep". The second script should be identical to the first, but with the depth level set to 3.

Next, schedule the first script ("mirror_1deep") to run as student using cron at the following times:

  • Midnight on Tuesday of every week
  • 3am on Saturday of every other week

Finally, schedule the second script ("mirror_3deep") to run as student using cron at the following times:

  • 1am on the first Monday of every month
  • 4pm on the 21st of every month



Classnotes | UNIX01 | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited August 9, 2003 2:16 am (diff)
Search:
(C) Copyright 2003 Samuel Hart
Creative Commons License
This work is licensed under a Creative Commons License.