How to pass multiple parameters to cron job with curl?

后端 未结 3 1635
陌清茗
陌清茗 2021-01-31 14:09

I\'m running two cron jobs:

This one executes without a problem:

curl -sS http://example.com/cronjob.php?days=1

But this doesn\'t run a

3条回答
  •  独厮守ぢ
    2021-01-31 14:33

    You'll notice that this doesn't exactly work in your shell, either.

    What you need to do is put single quotes around the URL, like so:

    curl -sS 'http://example.com/cronjob.php?days=1&month=1'
    

提交回复
热议问题