I'm using a cpanel where I've hosted an application. In my application I have to run some queries on minutes/hourly/daily basis. For that I'm using cron job from cpanel. Here is a cron command that I'm using:
* * * * * wget -O /dev/null https://******/sms_cron
The problem in this command is, it is sending an email when it trigger. After searching for solution in online to stop sending email, I've found this command useful:
* * * * * wget https://******/sms_cron > /dev/null 2>&1
But there is a problem with this command too. Though it has stop sending email, but it is generating new file every time it trigger. Now I have to idea how to stop that too. Can anyone help me out with that?