Cronjob every minute

后端 未结 5 1908
遇见更好的自我
遇见更好的自我 2020-12-18 18:42

I have a file in mysite.com/url1/url2/cronjob.php which has to be run every minute. I try every combination, but can\'t succeed. What should I run in command line? Thank you

5条回答
  •  爱一瞬间的悲伤
    2020-12-18 19:43

    Are you looking for help to make an UNIX cronjob?

    If so, have you tried to edit /etc/crontab, and add

    \1 * * * * user command
    

    where user is either root or your name. Im not exactly sure how to access and URL, but a dirty way could involve downloading the link as a file, e.g. "wget http://url.com/page.php"

提交回复
热议问题