Crontab open external page

Asked

Viewed 195 times

2

I set up a cron on my server to run a php script.

inside the crontab ran the line :

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

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

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

1 answer

0

I got what I wanted with the following cron command

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.