By amzen on Tuesday, 13 March 2018
Replies 4
Likes 0
Views 1K
Votes 0
Hello,
On one side, I have OVH hosting which gives me a cron task scheduler but it works only if the planned command is embedded in a php program.
On the other side, I have this forum which gives me the linux command to launch in the cron job :
/usr/bin/curl -s "http://www.mydomain.com/index.php?option=com_jevents&icsid=3&task=icals.reload"; > /dev/null 2>&1

I just need help to write the right very small php program the ical-cron.php which embed the linux command.

Is there a place in this forum where to find such a php program ?
Or can someone give me the right and accurate syntax only to embed the ical launcher command :
/usr/bin/curl -s "http://www.mydomain.com/index.php?option=com_jevents&icsid=3&task=icals.reload"; > /dev/null 2>&1

Thank you !
Hello,

One doesn't exist at present. You could just use:
https://www.easycron.com/

though?

Many thanks
Tony
·
Tuesday, 13 March 2018 16:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony,

I do not want Easycron and others as My hosting provides to me an accurate CRON manager.
As you are very cautious for this subject, I found one program that works in my OVH Hosting.
(Tony, thank you to modify or delete your next post about the previous program i displayed which where wrong)

I share it. If someone has a solution to improve it, I would be glad for the advise :

<?php
/**
* This php program launches the Ical reload URL
* just change the url between '' with the right one
*/
echo file_get_contents('http://www.mydomain.com/index.php?option=com_jevents&icsid=3&task=icals.reload');
echo 'Done';
·
Tuesday, 13 March 2018 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Why do you not just use a normal cron as normal? Have you contacted your hosting support for help setting up a curl cron job? Or a wget cron?

Many thanks
Tony
·
Wednesday, 14 March 2018 09:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tony,
I updated my answer with a php program that works. Can you also update your own answer related to the previous code that was indeed completely wrong.
·
Tuesday, 27 March 2018 08:14
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post