Schedule Cron Job on Reboot at Raspberry Pi

Introduction

Cron is time based scheduler on Linux operating system. it run task periodically at specific time based on cron task list. There are some reason you want to execute a specific task at boot or at specific time. You may want to use #reboot cron schedule to run task at reboot.

Setup Cron at Reboot

To setup a cron task run when reboot for Raspberry pi, you can enter value at cron task as follow.

  • crontab -e
  • insert cron task
  • save with Ctr-X and yes

  • Reboot machine and check if task runnning
  • ps aux | grep cron

Conclusion

We just setup a script.sh execute by cron run when machine reboot. It is fairly simple process.