Package: cron
Version: 3.0pl1-100
Severity: normal

Hi,

I just discovered the following behaviour with cron which seems like a
bug to me. A user has the following entries in his personal crontab
(lines abbreviated):

30 01 * * *     CAL=`calendar`; [ ! -z "$CAL" ] && calendar | mail [...]
30 01 * * *     r2e run
@reboot         CAL=`calendar`; [ ! -z "$CAL" ] && calendar | mail [...]
@reboot         r2e run

The regular cronjobs are executed every night at 1:30 pm. Upon reboot,
however, only the second job ('r2e run') is being executed. Syslog shows
as follows:

Aug 10 06:58:42 p43k anacron[3263]: Anacron 2.3 started on 2007-08-10
Aug 10 06:58:42 p43k anacron[3263]: Will run job `cron.daily' in 5 min.
Aug 10 06:58:42 p43k anacron[3263]: Jobs will be executed sequentially
Aug 10 06:58:43 p43k /usr/sbin/cron[3276]: (CRON) INFO (pidfile fd = 3)
Aug 10 06:58:43 p43k /usr/sbin/cron[3277]: (CRON) STARTUP (fork ok)
Aug 10 06:58:43 p43k /usr/sbin/cron[3277]: (CRON) INFO (Running @reboot jobs)
Aug 10 06:58:43 p43k /USR/SBIN/CRON[3293]: (wolf) CMD (r2e run)

There's no entry regarding the other job. Some tests revealed that any
job where the command line includes `...` or $(...) will not be
executed. I discovered this on a production machine and was able to
reproduce this problem on a test etch installation. Whether or not
anacron was installed did not make a difference.

If you need any more information, feel free to contact me.


Cheers, Wolf


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_GB, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages cron depends on:
ii  adduser                     3.102        Add and remove users and groups
ii  debianutils                 2.17         Miscellaneous utilities specific t
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  libpam0g                    0.79-4       Pluggable Authentication Modules l
ii  libselinux1                 1.32-3       SELinux shared libraries
ii  lsb-base                    3.1-23.1     Linux Standard Base 3.1 init scrip

Versions of packages cron recommends:
ii  postfix [mail-transport-agent 2.3.8-2+b1 A high-performance mail transport 

-- debconf-show failed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to