This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Proper CRON setup
#3
RE: [HOW-TO] Proper CRON setup
Create a file mycron.php:

Code:
<?php
       // create curl resource
       $ch = curl_init();
     $myurl="my_domain_name/index.php?option=com_easysocial&cron=true&phrase=nottellingyou";

       // set url
       curl_setopt($ch, CURLOPT_URL, $myurl);

       //return the transfer as a string
       curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

       // $output contains the output string
       $output = curl_exec($ch);

       // close curl resource to free up system resources
       curl_close($ch);      
?>
PHP Docs
http://php.net/manual/en/curl.examples.php
Then create a cron in sentora to run mycron.php.

That would do the trick.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask
Freelance AWS Certified Architect & SysOps// DevOps

10$ free to start your VPS
Reply
Thanks given by: TGates


Messages In This Thread
Proper CRON setup - by TGates - 10-22-2014, 05:44 AM
RE: [HOW-TO] Proper CRON setup - by TGates - 01-31-2015, 03:34 AM
RE: [HOW-TO] Proper CRON setup - by CJsent - 10-16-2017, 12:17 AM
RE: [HOW-TO] Proper CRON setup - by TGates - 10-16-2017, 05:26 AM
RE: [HOW-TO] Proper CRON setup - by Me.B - 01-31-2015, 03:45 AM
RE: [HOW-TO] Proper CRON setup - by TGates - 02-28-2015, 03:55 AM
RE: [HOW-TO] Proper CRON setup - by Me.B - 02-28-2015, 03:59 AM
RE: Proper CRON setup - by johnk42 - 05-14-2018, 12:29 AM
RE: Proper CRON setup - by TGates - 05-15-2018, 12:19 AM
RE: Proper CRON setup - by johnk42 - 05-15-2018, 01:07 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Ubuntu: How to setup TLS on postfix and dovecot Diablo925 28 106 ,928 02-15-2018, 08:46 PM
Last Post: duane

Forum Jump:


Users browsing this thread: 1 Guest(s)