How to write cron job in AWS EC2 server

后端 未结 3 899
一生所求
一生所求 2021-01-31 10:01

I\'ve created a cron job in AWS EC2 but it is not working.

I followed below steps to create cron tab:

  • Step 1: I logged in to AWS EC2 Instace
  • step
3条回答
  •  半阙折子戏
    2021-01-31 10:46

    Running cron on EC2 is not any different from running on any *nix server - as far as I know. I would check of the system messages for any errors. You can also redirect stderr/stdout to a file as in

     * * * * *   >> /var/tmp/out.log 2>&1
    

    and check for any issues for starters.

提交回复
热议问题