Question 800
Original unofficial RHEL 10 RHCSA skill-check scenario: A one-time script runs from `at` but cannot locate files referenced by a relative path. Which ongoing practice best prevents a recurrence?
Explanation
Correct Answer
In this RHEL 10 system administration case: A one-time script runs from `at` but cannot locate files referenced by a relative path. Underlying reason: Scheduled jobs may run with a different environment than an interactive shell. The most direct, approved resolution is: Use absolute paths and explicit environment assumptions in the scheduled command. Confirm it by checking: The job reads and writes the intended paths regardless of submission directory. Sustain the fix by: Include environment and pathname checks in job tests. This is the INTENDED response for the best ongoing operational safeguard. It is a knowledge-check explanation, not a verified hands-on Red Hat exam answer;
Incorrect Answers
Remove completed or obsolete one-time jobs from operational plans. That is not sufficient for the reported RHEL task, because scheduled jobs may run with a different environment than an interactive shell.
Document the runtime identity for scheduled operations. That is not sufficient for the reported RHEL task, because scheduled jobs may run with a different environment than an interactive shell.
Pre-stage and test mirrored content before offline updates. That is not sufficient for the reported RHEL task, because scheduled jobs may run with a different environment than an interactive shell.