By Neel on Tuesday, 09 December 2014
Posted in General Issues
Likes 0
Views 1.1K
Votes 0
I read your documentation and it didnt help. How do you set-up Cron Job for Easysocial emails from SSH? I am on a debian 7 and no cpanel.
Hi Neel,

Assuming you have cron functionality installed on your server, the following should work:


*/5 * * * * wget "http://site.com/index.php?option= com_easysocial&cron=true&tmpl=component" >/dev/null 2>&1
·
Wednesday, 10 December 2014 00:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you justin. That is perfect and thats what I was after.

Just 1 last question, is it okay when I add multiple cron jobs like the above (1 for easysocial, 1 for komento, etc...) with different timings for each command inside the same crontab file itself? Will that work?
·
Wednesday, 10 December 2014 00:23
·
0 Likes
·
0 Votes
·
0 Comments
·
You can simply add additional lines while you're in the crontab editing window. I myself use the following along site the one above for ED and EB:


*/5 * * * * wget "http://site.com/index.php?option= com_easyblog&task=cron&tmpl=component" >/dev/null 2>&1
*/5 * * * * wget "http://site.com/index.php?option= com_easydiscuss&task=cron&tmpl=component" >/dev/null 2>&1


You can adjust the times for your crons as needed.
·
Wednesday, 10 December 2014 00:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Awesome...

I was wondering, with the user activation emails, does that go on the cron job queue as well? I am thinking of maybe having the cron job interval as 10 or 15 mins but I dont want the users who are waiting for their activation email after registration to be waiting for 10 mins or more just to receive that email. So are user activation emails sent directly or does it go on this cron job queue as well?
·
Wednesday, 10 December 2014 00:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I believe those are sent immediately after registration or approval from an admin. You could always do a few test registrations to see if that's the case.
·
Wednesday, 10 December 2014 00:43
·
0 Likes
·
0 Votes
·
0 Comments
·
When a user registers on the site, it doesn't make sense to add these notifications in the mail queue because the email should be instantly sent to the user Having them wait for an email is not ideal
·
Wednesday, 10 December 2014 01:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect. I can then safely increase the cron interval to 15 mins without worrying. Thank you Justin and Mark.
·
Wednesday, 10 December 2014 02:05
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome
·
Wednesday, 10 December 2014 02:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post