Bird
0
0

You want to collect sensor data every 10 minutes and save it to a database. Which cron entry correctly schedules this, assuming the script is at /home/pi/data_collect.sh?

hard🚀 Application Q8 of 15
Raspberry Pi - Data Logging and Databases
You want to collect sensor data every 10 minutes and save it to a database. Which cron entry correctly schedules this, assuming the script is at /home/pi/data_collect.sh?
A0 */10 * * * /home/pi/data_collect.sh
B*/10 * * * * /home/pi/data_collect.sh
C10 * * * * /home/pi/data_collect.sh
D*/10 */10 * * * /home/pi/data_collect.sh
Step-by-Step Solution
Solution:
  1. Step 1: Understand scheduling every 10 minutes

    "*/10" in the minute field means every 10 minutes.
  2. Step 2: Check other fields

    "*" in hour and other fields means every hour, day, etc., which is correct.
  3. Final Answer:

    */10 * * * * /home/pi/data_collect.sh -> Option B
  4. Quick Check:

    */10 in minutes = every 10 minutes [OK]
Quick Trick: */10 in minutes runs every 10 minutes [OK]
Common Mistakes:
MISTAKES
  • Using 10 in minute field (runs once at 10th minute)
  • Misplacing */10 in hour field
  • Using double */10 in minute and hour

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes