Run a curl command using CRON jobs

前端 未结 3 471
孤城傲影
孤城傲影 2021-01-02 06:31

I want to run this statement:

curl \'http://localhost:8983/solr/dataimport?command=full-import\'

every 10 minutes using CRON jobs.

3条回答
  •  没有蜡笔的小新
    2021-01-02 06:53

    In case of using Cpanel :
    Cpanel->Cron Jobs->Put Time Interval(*/10 * * * * )
    Add command in the text box:
    curl -s "http://localhost:8983/solr/dataimport?command=full-import"
    where -s stands for silent (no output)
    You are done

提交回复
热议问题