Cron is creating empty files, how to stop this?
Hello to everyone,
I'm using Cron from cPanel to complete some automatic tasks to my website, i have setup the cron command like this :
and each time it's completing the task it's creating files like this "WonProductNotification" with empty content, yesterday i couldn't even login to my server using ftp because of these much files that was created by cron, around 50k files .. Can someone tell me what to do in this case? how to make cron do it's job without creating these files? I already tried to change the command like this "wget -O link >/dev/null 2>&1 but cron is not working then after i change from -q to O , can someone help me please? Thanks in advance.
* * * * * wget -q https://www.mydomain.com/cron/WonProductNotification >/dev/null 2>&1and each time it's completing the task it's creating files like this "WonProductNotification" with empty content, yesterday i couldn't even login to my server using ftp because of these much files that was created by cron, around 50k files .. Can someone tell me what to do in this case? how to make cron do it's job without creating these files? I already tried to change the command like this "wget -O link >/dev/null 2>&1 but cron is not working then after i change from -q to O , can someone help me please? Thanks in advance.
-
Did you try this way? wget --quiet -O
orwget -q --spider0 -
Did you try this way?
wget --quiet -O
orwget -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>&10 -
* * * * * 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>&10 -
* * * * * 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 -
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.
Comments
5 comments