Skip to main content

Cron is creating empty files, how to stop this?

Comments

5 comments

  • vacancy
    Did you try this way?
    wget --quiet -O
    or
    wget -q --spider
    0
  • h0feer
    Did you try this way?
    wget --quiet -O
    or
    wget -q --spider

    Hi, thanks for your reply. please explain it a little bit clear, you mean try like this :
    wget --quiet -O https://www.mydomain.com/cron/WonProductNotification >/dev/null 2>&1
    0
  • vacancy

    * * * * * wget --quiet -O https://www.mydomain.com/cron/WonProductNotification >/dev/null 2>&1

    * * * * * wget -q --spider https://www.mydomain.com/cron/WonProductNotification >/dev/null 2>&1
    0
  • h0feer

    * * * * * wget --quiet -O https://www.mydomain.com/cron/WonProductNotification >/dev/null 2>&1

    * * * * * wget -q --spider https://www.mydomain.com/cron/WonProductNotification >/dev/null 2>&1

    Hi, i just tried both of these examples, none of them works, means when i change them like you said Cron is not doing it's job... any another suggestion please?
    0
  • cPanelMichael
    Hello, Are you able to execute the script instead of downloading the file? For instance, what exactly is the cron job and the file doing? Thank you.
    0

Please sign in to leave a comment.