MikeMc

Well-Known Member
May 8, 2002
161
0
316
Hi,

could you tell me which solution is the best for calling an url via cpanel cronjobs?

- lynx
- GET
- wget
- fetch

Thank you
 

jimcarter

Well-Known Member
Jun 30, 2002
152
0
166
UK
I use curl,
But I have found that using wget is more reliable, but it is a pain when you get a load of downloaded files in your home directory, so I usually add another cron job to delete the file after downloading it,
Thanks
 

gic

Well-Known Member
Jun 28, 2002
69
0
156
Couldn't you just add > /dev/null to the end instead of making a new cron job to do this? I am not very good with this, but I have see this before.
 

ecoutez

Well-Known Member
May 23, 2002
152
0
316
wget has a --delete-after option which already takes care of this. ie:

0,15,30,45 * * * * root /usr/bin/wget --delete-after http://username:[email protected]/script.php > /dev/null

- Jason