How to set up a cron job to run an executable every hour?

后端 未结 7 2355
迷失自我
迷失自我 2020-11-30 21:59

I need to set up a cron job that runs an executable compiled using gcc once every hour.

I logged in as root and typed crontab -e

Then I entered

相关标签:
7条回答
  • 2020-11-30 22:52

    If you're using Ubuntu, you can put a shell script in one of these folders: /etc/cron.daily, /etc/cron.hourly, /etc/cron.monthly or /etc/cron.weekly.

    For more detail, check out this post: https://askubuntu.com/questions/2368/how-do-i-set-up-a-cron-job

    0 讨论(0)
提交回复
热议问题