[Bug 1250837] Re: Schedule doesn't work correctly

Rodrigo Ap. F. Tomazini rodrigo at rcbrasil.com.br
Wed Nov 13 16:01:16 UTC 2013


Ok, sorry.

I have read all man page and I found a way to do this work by using test
command.

thank you.


2013/11/13 Petya Kohts <petya.kohts at gmail.com>

> You didn't read documentation carefully enough, qouting:
>
> Note: The day of a command's execution can be specified by two fields --
> day of month, and day of week.  If  both         fields  are  restricted
>  (ie,
> aren't  *),  the command will be run when either field matches the cur-
> rent time.  For example,
> "30 4 1,15 * 5" would cause a command to be run at 4:30 am on  the  1st
> and 15th of each month, plus every Friday.
>
> So your schedule means "run when it is 6:30 AND november AND (tuesday OR
> day of month is one of 8,9,10,11,12,13,14 )"
>
> This is not a bug, but by design.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1250837
>
> Title:
>   Schedule doesn't work correctly
>
> Status in “cron” package in Ubuntu:
>   New
>
> Bug description:
>   Hello,
>
>   I think I have found a bug in cron.
>   I scheduled a task to be executed in this month, November, between 8-14
> days only if day was tuesday. Cron schedule:
>
>   30 06 8-14 nov tue web /usr/bin/php
>   /var/www/site/tarefas/pos_atualiza_fichas.php
>
>   It has been executed every day not only tuesday and I don't know why
>   it has been executed in day 5. See the logs:
>
>   syslog.1:Nov 13 06:30:01 ns1 CRON[16377]: (web) CMD (/usr/bin/php
> /var/www/site/tarefas/pos_atualiza_fichas.php)
>   syslog.2:Nov 12 06:30:01 ns1 CRON[9743]: (web) CMD (/usr/bin/php
> /var/www/site/tarefas/pos_atualiza_fichas.php)
>   syslog.3:Nov 11 06:30:01 ns1 CRON[17923]: (web) CMD (/usr/bin/php
> /var/www/site/tarefas/pos_atualiza_fichas.php)
>   syslog.4:Nov  8 06:30:01 ns1 CRON[32583]: (web) CMD (/usr/bin/php
> /var/www/site/tarefas/pos_atualiza_fichas.php)
>   syslog.7:Nov  5 06:30:01 ns1 CRON[12131]: (web) CMD (/usr/bin/php
> /var/www/site/tarefas/pos_atualiza_fichas.php)
>
>   Best regards
>
>   ProblemType: Bug
>   DistroRelease: Ubuntu 10.04
>   Package: cron 3.0pl1-106ubuntu7
>   ProcVersionSignature: Ubuntu 2.6.32-44.98-server 2.6.32.59+drm33.24
>   Uname: Linux 2.6.32-44-server x86_64
>   Architecture: amd64
>   Date: Wed Nov 13 10:18:55 2013
>   InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64
> (20100427)
>   ProcEnviron:
>    LANGUAGE=pt_BR:pt:en
>    PATH=(custom, no user)
>    LANG=pt_BR
>    SHELL=/bin/bash
>   SourcePackage: cron
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1250837/+subscriptions
>


-- 
Saiba mais sobre as soluções SonicWALL
SonicWALL TZ Series <http://www.sonicwall.com/br/pt/products/TZ_Series.html>
SonicWALL Network
Security<http://www.sonicwall.com/br/pt/products/Network_Security.html>
SonicWALL Network Security
Services<http://www.sonicwall.com/br/pt/products/Network_Security_Services.html>
SonicWALL <http://www.sonicwall.com/br/pt/>

--

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/1250837

Title:
  Schedule doesn't work correctly

Status in “cron” package in Ubuntu:
  New

Bug description:
  Hello,

  I think I have found a bug in cron.
  I scheduled a task to be executed in this month, November, between 8-14 days only if day was tuesday. Cron schedule:

  30 06 8-14 nov tue web /usr/bin/php
  /var/www/site/tarefas/pos_atualiza_fichas.php

  It has been executed every day not only tuesday and I don't know why
  it has been executed in day 5. See the logs:

  syslog.1:Nov 13 06:30:01 ns1 CRON[16377]: (web) CMD (/usr/bin/php /var/www/site/tarefas/pos_atualiza_fichas.php)
  syslog.2:Nov 12 06:30:01 ns1 CRON[9743]: (web) CMD (/usr/bin/php /var/www/site/tarefas/pos_atualiza_fichas.php)
  syslog.3:Nov 11 06:30:01 ns1 CRON[17923]: (web) CMD (/usr/bin/php /var/www/site/tarefas/pos_atualiza_fichas.php)
  syslog.4:Nov  8 06:30:01 ns1 CRON[32583]: (web) CMD (/usr/bin/php /var/www/site/tarefas/pos_atualiza_fichas.php)
  syslog.7:Nov  5 06:30:01 ns1 CRON[12131]: (web) CMD (/usr/bin/php /var/www/site/tarefas/pos_atualiza_fichas.php)

  Best regards

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: cron 3.0pl1-106ubuntu7
  ProcVersionSignature: Ubuntu 2.6.32-44.98-server 2.6.32.59+drm33.24
  Uname: Linux 2.6.32-44-server x86_64
  Architecture: amd64
  Date: Wed Nov 13 10:18:55 2013
  InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
  ProcEnviron:
   LANGUAGE=pt_BR:pt:en
   PATH=(custom, no user)
   LANG=pt_BR
   SHELL=/bin/bash
  SourcePackage: cron

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1250837/+subscriptions



More information about the foundations-bugs mailing list