Hello all. I have a problem configuring the crontab on my server. I follow this steps. 1. Edit using nano crontab -e command 2. Add this lines Code: Code: 0 24 * * * php /root/scripts/backup_mysql.php 15 * * * * wget -q -O /dev/null http://domain.com/cronjob/atualiza-horas 3. Save the file and run the /sbin/service crond start command This both cronjobs does not execute. How can I make this work? The second cronjob is without the link.
Same reason. You have to use the full path for every command that you use in a cronjob. If you dont know the full path, then you can get it with the which command. e.g. which wget
till, thanks again but it still no working. Look how is my cron file. I tried in the log but I can't found anything. Code: 0 24 * * * /usr/bin/php "/root/scripts/backup_mysql.php" 15 * * * * /usr/bin/wget -q -O /dev/null http://domain.com/cronjob/atualiza-horas