Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In linux, we're going to use our knowledge of process automation to create a number of cron job files that solve specific problems. You should

In linux, we're going to use our knowledge of process automation to create a number of cron job files that solve specific problems. You should create/test all of these scenarios from your student account on the server VM. Any files that are written by the process should be written to your student home directory. Do NOT create/run these from the root account.

The scenarios that you'll need to create are listed below:

1. The system admin staff would like you to create a cron job that runs only on weekdays (Monday - Friday) at 2 am, continuously throughout the year. The job should create and write a listing of all processes that are currently running on the host to a file called processes.txt

2. The Helpdesk would like to keep metrics on disk usage for a short period of time. Write a cron job that writes the output of the 'df -h' command to a local file titled metric.txt. The job should run on every Wednesday from 9am till 1pm and update every 2 minutes. Make sure that you don't OVERWRITE the data that's already in the file. You'll need to structure your command so that it APPENDS to the file, saving the data that's already been written.

In both cases, you should load the appropriate cron job file into the crontab daemon, then use the 'crontab -l' command to display the contents of the cron buffer. Take a screen shot of this output and upload for each individual problem. Do not upload more than 3 screen shots. JPG or PNG files only.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

What is digital literacy? Why is it necessary?

Answered: 1 week ago