QuestionQ15

Operations

What is the correct way to run a report-generation script (report.sh) every Monday at 5:00 AM?

  • A Use at -f /usr/local/bin/report.sh 5am Monday
  • B Create a script for the report and save it to /etc/rc.d/weekiy
  • C Use batch 5am Monday /usr/local/bin/report.sh
  • D Use crontab -e to add 0 5 * * 1 /usr/local/bin/report.sh
Explanation

Cron schedules recurring commands. The entry 0 5 * * 1 /usr/local/bin/report.sh runs the script at minute 0 of hour 5 on every Monday.

Community Discussion

No comments yet. Be the first to start the discussion!