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) »
  • cron job leaving file behind
Pages: [1]

Author Topic: cron job leaving file behind  (Read 1407 times)

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
cron job leaving file behind
December 29, 2009, 11:31:48 am
Hi -

I know this isn't a specifically civimail question, but hope that someone can help me nonetheless.

My civimail.cronjob.php is leaving a file behind every time the cron job runs.  It is also emailing me.  I don't see why I need the file, since I get the email.  It would be better not to have to clean these files up all the time.  The cron job is:

wget -o /dev/null 'http://www.mydomain.com/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=xxx&pass=xxx&key=xxx'

Can someone point me in the right direction to modify this so that it will not leave the file behind?

Thanks.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: cron job leaving file behind
January 04, 2010, 04:16:59 am
If you run below command it won't create file when you run cron job.

Quote
wget 'http://<site-and-civicrm-path>/bin/civimail.cronjob.php?name=<name>&pass=<pass>&key=<key>'

Kurund
Found this reply helpful? Support CiviCRM

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: cron job leaving file behind
January 04, 2010, 09:25:19 am
Hi Kurund - thanks for the suggestion, but unfortunately that didn't work.   

My cron job is now:
wget 'http://www.mydomain.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=xxxx&pass=xxxx&key=xxx'

and it is still dropping a file each time it runs.  Any other thoughts?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: cron job leaving file behind
January 04, 2010, 09:32:05 am
What and where it creates a file?

Kurund
Found this reply helpful? Support CiviCRM

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: cron job leaving file behind
January 04, 2010, 12:18:58 pm
Hi Kurund -

The name of the file created is civimail.cronjob.php?name=xxx&pass=xxx&key=xxx.  It is a 0K file, absolutely empty.  It is created in my root directory.  (Not my public_html directory where the drupal install is, but the directory above that).

I assume it is the wget command that is leaving the file, not the civimail.cronjob.php file?   But I have tried a variety of options with no luck so far.

Most recently I tried the quiet command

wget -q 'http://www.mydomain.org/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=xxx&pass=xxx&key=xxx' with no change in behavior.

civicrmsav

  • I post frequently
  • ***
  • Posts: 121
  • Karma: 5
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.x
Re: cron job leaving file behind
January 04, 2010, 12:35:34 pm
I think I solved it with help from hosting provider.

wget -O /dev/null 'http://www.example.com/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=AAAAAA&pass=BBBBB&key=EEEE'

Seems to work.  Note that this a CAPITAL "O", not lower case as I originally had.  
« Last Edit: February 02, 2010, 09:41:06 pm by Donald Lobo »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • cron job leaving file behind

This forum was archived on 2017-11-26.