Purchase Solution

How to use Unix Crontab script for Various Jobs and Backups

Not what you're looking for?

Ask Custom Question

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.

Purchase this Solution

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.

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 ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.