CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • need to run cron for civimail everytime manually?
Pages: [1]

Author Topic: need to run cron for civimail everytime manually?  (Read 6665 times)

kavita.s.shinde

  • Guest
need to run cron for civimail everytime manually?
October 31, 2008, 02:51:54 am
hi all,

working on civimail, there if i create new mailing and shedule it or send it immediately, so everytime I have to run cron manually, and it is not supported by drupal's cron run. Is there any way by which i can avoid doing cron run manually.

Civimail is working perfectly fine on my site with cron run
I have tried both the option for cron run with which it works fine ie
1. http://www.testsite.com/civicrm/mailing/queue?reset=1
2. wget 'http://your-domain.org/path/to/civicrm/bin/civimail.cronjob.php?name=civimailuser&pass=civimailuserpassword'

So if I am creating 100 mailings every day then everytime i need to run cron manually?

I am using drupal 5.9 and civicrm 2.0.4

Thanks,
Kavita

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: need to run cron for civimail everytime manually?
October 31, 2008, 05:50:55 am
Quote from: kavita.s.shinde on October 31, 2008, 02:51:54 am
it is not supported by drupal's cron run.

CiviCRM doesn’t hook to Drupal’s cron, because it’s CMS-agnostic (also runs as Joomla module and standalone).

Quote from: kavita.s.shinde on October 31, 2008, 02:51:54 am
Is there any way by which I can avoid doing cron run manually.

Well, cron by definition is a system to automatically run stuff every X amount of time. :) What you need to do is to put the wget call (that you verified is working for you) into your crontab, i.e., a place which tells your server what and how often to run.

If you have a shell account, one of the ways to do this is to run the crontab -e command and edit the crontab there. If you have any kind of a management system for your account (like Webmin or cPanel), it’s usually easier and better to use that. If you’re not sure, please consult with your hosting provider.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

kavita.s.shinde

  • Guest
Re: need to run cron for civimail everytime manually?
October 31, 2008, 06:26:35 am
Yes, we have tried with cron tab it worked fine

Thanks
kavita


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: need to run cron for civimail everytime manually?
October 31, 2008, 06:36:36 am
Quote from: kavita.s.shinde on October 31, 2008, 06:26:35 am
Yes, we have tried with cron tab it worked fine

Does this mean the problem is solved for you?

(Once you put the wget call in your crontab it’ll fire all scheduled mailings and all mailings you create in the future, of course, so you don’t need to alter anything after you get it in place once.)
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

kavita.s.shinde

  • Guest
Re: need to run cron for civimail everytime manually?
November 03, 2008, 03:33:46 am
hi

As a test example our team tried crontab and it worked fine

kavita




DHLao

  • Guest
Re: need to run cron for civimail everytime manually?
April 07, 2009, 02:11:13 am
About the cron job. (I'm using Windows Scheduled Tasks instead).

I set to run 'http://<site-and-civicrm-path>/bin/civimail.cronjob.php?name=<name>&pass=<pass>&key=<key>' once daily

Problem is everytime this task run, the IE pop-up and it won't close itself.

After a week past, there're totally 7 IE windows on the screen.

Because I want to use other cronjob application and set it to run every 5 mins. If this pop-up problem can't solve. My computer screen will just flood by those IE browser.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: need to run cron for civimail everytime manually?
April 08, 2009, 04:47:55 am
Quote from: DHLao on April 07, 2009, 02:11:13 am
I set to run 'http://<site-and-civicrm-path>/bin/civimail.cronjob.php?name=<name>&pass=<pass>&key=<key>' once daily

Problem is everytime this task run, the IE pop-up and it won't close itself.

Right, because you only put the link in the task, so Windows uses the default application to run it (IE in your case). We don’t have much experience with Windows; you either need to try to open this address with something other than IE, or make IE quit automatically after it visits the URL.

Quote
Because I want to use other cronjob application and set it to run every 5 mins. If this pop-up problem can't solve. My computer screen will just flood by those IE browser.

We don’t have much experience with Windows scheduling applications, but you should be able to run different tasks at different time intervals somehow.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

jeffieb

  • Guest
Re: need to run cron for civimail everytime manually?
August 21, 2009, 06:52:48 am
If you are still having problems with windows scheduler and IE, you might try a windows version of wget.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • need to run cron for civimail everytime manually?

This forum was archived on 2017-11-26.