Tuesday, 13 March 2018
  4 Replies
  1K Visits
0
Votes
Undo
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 !
Tuesday, 13 March 2018 16:19
·
#198870
0
Votes
Undo
Hello,

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

though?

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 13 March 2018 16:31
·
#198875
0
Votes
Undo
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';
Wednesday, 14 March 2018 09:45
·
#198903
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 27 March 2018 08:14
·
#199390
0
Votes
Undo
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.
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.