Explore BrainMass
Share

Explore BrainMass

    How to use Unix Crontab script for Various Jobs and Backups

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Create a crontab to perform the tasks listed below at the frequencies specified. Note that you do NOT need to write the actual scripts!

    a) Run a backup script named local-backup from the /usr/local/adm directory every weekday at 11:30pm.

    b) Execute a cleanup script named weekly-cleanly from the same directory above, every Friday at 4:30am.

    c) Every night, produce a list of files that are world-writable.

    d) Execute a reporting program, named twice-monthly from the /usr/local/bin directory on the 15th and 31st.

    e) Execute a performance report script named perf23 every hour at 15 and 45 minutes after the hour on weekdays between the hours of 6:00am and 6:00pm. The script is located in root's home directory.

    © BrainMass Inc. brainmass.com October 9, 2019, 5:56 pm ad1c9bdddf
    https://brainmass.com/computer-science/program-execution/how-to-use-unix-crontab-script-for-various-jobs-and-backups-72752

    Solution Preview

    I have attached the solution as asked with easy-to-understand formatting. Just some notes:

    1. for c) it is assumed that we need to produce the list of files at midnight and write them to a file named wwfiles.log in the /tmp directory.

    2. the world ...

    Solution Summary

    Gives a detailed explanation on using crontab to perform the tasks listed below at the frequencies specified.

    a) Run a backup script named local-backup from the /usr/local/adm directory every weekday at 11:30pm.

    b) Execute a cleanup script named weekly-cleanly from the same directory above, every Friday at 4:30am.

    c) Every night, produce a list of files that are world-writable.

    d) Execute a reporting program, named twice-monthly from the /usr/local/bin directory on the 15th and 31st.

    e) Execute a performance report script named perf23 every hour at 15 and 45 minutes after the hour on weekdays between the hours of 6:00am and 6:00pm. The script is located in root's home directory.

    $2.19