The wget seems to work for me but it downloads the whole php file from the server and its just such a pain to delete it. Any suggestions on how to stop it from downloading the php script?joemuller wrote:If you just put a URL in your crontab, it's not going to work - you're just going to get a lot of error messages. I recommend pre-pending the URL with wget or curl like so: (http://stackoverflow.com/questions/11375260/)Code: Select all
curl http://example.com/test.php
cron job
Web hosting discussion, programming, and shared and dedicated servers.
12 posts
Page 2 of 2
Check out wget's man page.
You can do it like this:
outfile will contain the stdout of the URL.
Code: Select all
man wget
Code: Select all
wget -O - $URL >> /tmp/outfile
12 posts
Page 2 of 2