Crontab open external page

2

I configured a cron on my server to run a php script.

Within the crontab I ran the line:

curl http://localhost/atualizacoes/check-atualizacoes.php

It ran perfectly, but inside that php I have an if that calls an external page, which sends an email, tried using header, iframe and can not make it execute this second page.

If I run the page manually in my browser, it works normally, can someone tell me what I need to do?

    
asked by anonymous 20.07.2015 / 16:23

1 answer

0

I got what I wanted with the following command in cron

/usr/bin/wget -q -O temp.txt http://localhost .....
    
20.07.2015 / 17:46