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

后端 未结 7 2393
迷失自我
迷失自我 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:35

    Did you mean the executable fails to run , if invoked from any other directory? This is rather a bug on the executable. One potential reason could be the executable requires some shared libraires from the installed folder. You may check environment variable LD_LIBRARY_PATH

提交回复
热议问题