I have created a cron job in a server www.domain.com with CENTOS:
*/10 * * * * http://www.anotherdomain.com/cron/task.php
but its returning:
/bin/sh: http://www.anotherdomain.com/cron/task.php: No such file or directory
How to make it works?
*/10 * * * * wget -q -t 5 --delete-after http://www.anotherdomain.com/cron/task.php
q = quiet
t = retries incase of network issues (5 in this case)
delete-after = we don't actully want the output of the remote page