-
Pass the
date >> /home/student/myjob.txtstring as the input to theatcommand so that the job runs three minutes from now. -
Schedule a recurring job as the
studentuser that appends the current date and time to the/home/student/my_first_cron_job.txtfile every two minutes, but only from Monday to Friday (not on Saturday or Sunday). -
Remove all the scheduled recurring jobs for the
studentuser.
- Complete these exercises on controller.
- Work as the user named in the exercise; use root only for system-wide schedules or access-control files.
- Use full command paths in scheduled jobs when command lookup could be ambiguous.
- Redirect output to the file named in the exercise so that job execution can be verified.
- Do not remove schedules belonging to users other than the user named in the exercise.
- Recurring schedules must remain installed until an exercise explicitly asks for their removal.
- Submit exactly
date >> /home/student/at-job.txtfor execution three minutes from the current time and confirm a new timestamp appears after the job runs. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Save the pending job list in
/home/student/at-queue.txtand save the inspected body of one selected job in/home/student/at-job-body.txt. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Schedule a harmless job at least ten minutes ahead, record its job ID, remove that ID, and prove it no longer appears in the queue.
- Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Schedule
logger -t rhcsa-at "tomorrow job executed"for 17:30 tomorrow and verify that the requested calendar time is shown in the queue. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Install a student crontab entry that appends
five-minute-runand the date to/home/student/five-minute-job.logevery five minutes. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Append the date to
/home/student/my_first_cron_job.txtevery two minutes only Monday through Friday; the schedule must exclude Saturday and Sunday. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Create a job that writes
weekly-maintenanceto/home/student/weekly.logat 02:15 every Sunday and confirm all five cron fields. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Create
/etc/cron.d/training-reportto run/usr/bin/uptimeasstudentat 06:00 daily; set file ownership and permissions accepted by crond. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Permit
studentand deny the instructor-named test user access toat; demonstrate an accepted submission and a rejected submission. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.
- Remove the student's entire crontab, confirm
crontab -lreports none, and leave system-wide schedules and other users' crontabs unchanged. - Meet every name, path, size, address, time, port, permission, or other value exactly as written. Do not substitute different values unless the instructor approves them.
- Limit changes to resources used by this exercise and leave unrelated system configuration unchanged.
- Verify the result with
atq,at -c,crontab -l, the relevant file timestamps and contents, and journal entries for the scheduling service. - Demonstrate both the configured state and its practical effect; a configuration file alone is not sufficient evidence.
- Record the commands used and the relevant verification output for instructor review.