By Gregg Patberg on Wednesday, 19 August 2015
Posted in Technical Issues
Replies 9
Likes 0
Views 794
Votes 0
Greetings:

I have tried various settings and cronjob to get remote publishing to work. Please find my 3 different cronjob ... the setup in remote publishing show a successful test.

Here are the cronjobs:

0* * * * /bin/wget -O /dev/null "http://mysite.org/folder/index.php?option=com_easyblog&task=cron";

0 * * * * php -q /home/account/public_html/folder/index.php?option=com_easyblog&task=cron > /dev/null 2>&1

0 * * * * cd '/home/account/public_html/folder/' ; php -q 'index.php?option=com_easyblog&task=cron' > /dev/null ;

Any suggestions on how to get this working?
Hey Gregg,

May i know which cronjob service you use? e.g. Cpanel , siteground and etc.

By the way, It would be best if you can provide us with your Joomla backend and Cpanel access so we can take a look of this.
·
Wednesday, 19 August 2015 10:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Alex,

Using cPanel

I have set up a Joomla Login for you in Site Details ... if the EasyBlog setup is correct then I will set you up with cPanel Access

Here is the error that I am being emailed:

usr/local/cpanel/bin/jailshell: /bin/wget: No such file or directory

... when using this cronjob:

0* * * * /bin/wget -O /dev/null "http://mysite.org/folder/index.php?option=com_easyblog&task=cron";;
·
Wednesday, 19 August 2015 11:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Try use this and see what server return the response:

*/1 * * * * /usr/bin/wget -O /dev/null "http://mysite.org/folder/index.php?option=com_easyblog&task=cron"

·
Wednesday, 19 August 2015 11:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Alex,

Here is the result

--2015-08-18 22:45:01-- http://www.mysite.org/folder/index.php?option=com_easyblog&task=cron
Resolving http://www.mysite.org... 18.243.000.74
Connecting to http://www.mysite.org|18.1243.000.74|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 100 [text/html]
Saving to: “/dev/null”

0K 100% 11.9M=0s

2015-08-18 22:45:11 (11.9 MB/s) - “/dev/null” saved [100/100]


QUESTION: It looks like the articles posted in the right place ... how do I get the system to not email each time the cron job runs?

Thanks
·
Wednesday, 19 August 2015 11:43
·
0 Likes
·
0 Votes
·
0 Comments
·
hey Gregg,

I am sorry that delay of this reply,

QUESTION: It looks like the articles posted in the right place ... how do I get the system to not email each time the cron job runs?

I have a little bit lost here, do you mean that you would like to control the email notification do not send out when the cronjob is run? Please advise.
·
Thursday, 20 August 2015 01:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

Exactly ... I would like to build a cronjob that does not email me that it has completed every time the cronjob executes.

Yet, another question ... what is difference between setting the mail account to get mail 30 minutes and running a cron job every thirty minutes?
·
Thursday, 20 August 2015 04:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gregg,

I am sorry that delay of this reply,

You can actually remove your email address from the cron mail section, if I recall correctly, you attached that screenshot page should have `cron mail` section right?

Regarding with your second question `mail account` to get mail 30 minute, may i know which setting you referring? Perhaps you can provide us some screenshot as well?
·
Thursday, 20 August 2015 11:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Alex,

Thanks ... I was able to remove the email address ... that part worked well.

About the checking email ... This is a screen shot of the Settings -> Remote Publishing ... the item I am curious about is the "Check time interval" box. See attachment. I want to know the difference between setting and the cronjob
·
Thursday, 20 August 2015 11:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Gregg,

You're welcome.

Settings -> mailbox Posting -> Check time interval - this one is depend on how many minute you set then system will check the mailbox is it got new email come in .
Cronjob time interval - the cronjob will auto run every 30 minute e.g. you set 0,30 minute

Example :
** If i set `Check time interval` - 60 minute only check mailbox is it got new email.
The cronjob need to run second time, 30 minute -> another 30 minute then only check mailbox is it got new email.

Hope this will help.
·
Thursday, 20 August 2015 11:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post