Skip to Content Skip to Menu

Mailer Cron Job - best set up?

8 years 5 months ago #282487 by gilbertstudios
Mailer Cron Job - best set up? was created by gilbertstudios
Hello,

I am trying to set up a cron job that will send out the Mailer emails.

The e-mails get sent out when i manually click the link, but the cron job isn't triggering it automatically.

I have checked with my hosting service, and they say that the logs show that the cron job is running hourly just as set up, and yet i'm not getting any email as a result.

And again, then i manually click the link in the Joomla back-end, and it processes and sends them correctly.

(...There isn't much in the Docs about the needed / appropriate wget command other than contact your hosting server.)

What am I missing?

Here is the command i'm using:
Code:
wget -q -O /dev/null (http://--LINK--)

(...the link is the one taken from Mailer : Automation Settings)

Is there a different or better wget command that I should use instead?


Thanks for your help getting the cron job to run the mailer script!

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
8 years 5 months ago #282491 by nant
Replied by nant on topic Mailer Cron Job - best set up?

gilbertstudios wrote: Hello,

I am trying to set up a cron job that will send out the Mailer emails.

The e-mails get sent out when i manually click the link, but the cron job isn't triggering it automatically.

I have checked with my hosting service, and they say that the logs show that the cron job is running hourly just as set up, and yet i'm not getting any email as a result.

And again, then i manually click the link in the Joomla back-end, and it processes and sends them correctly.

(...There isn't much in the Docs about the needed / appropriate wget command other than contact your hosting server.)

What am I missing?

Here is the command i'm using:

Code:
wget -q -O /dev/null (http://--LINK--)

(...the link is the one taken from Mailer : Automation Settings)

Is there a different or better wget command that I should use instead?


Thanks for your help getting the cron job to run the mailer script!


You should really contact your host about this as each host has prefered method.

Please Log in or Create an account to join the conversation.

8 years 5 months ago #282492 by gilbertstudios
Replied by gilbertstudios on topic Mailer Cron Job - best set up?
I did contact my host. They said the logs showed the cron job was running, and that was really all they could do.

They said:

I did check on the syslogs and there is a cron job running every hour
under your user. The last cron that ran was at 10 am PST which I pasted
output below;

May 29 10:00:03 ninkasi CRON[28829]: (username) CMD
(/usr/local/bin/setlock -n /tmp/cronlock.3788884334.189990 sh -c $'wget
-q -O /dev/null
http\072//www...link removed...')

So it is running. However I couldn't tell if its executing properly for
you. That would be something you would need to test and troubleshoot
along with your developers.



Is there something specific I should ask them to check?

What else can I do to make this work?

Thanks for your help.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum