Package: cron
Version: 3.0pl1-120
Severity: important

Dear Maintainer,

In man 5 crontab there are a few examples with "date +.." commands
executed in cron jobs. However, none of these are working because cron
considers '+' a special character and deletes the string after it. This
is what I received from such an execution:

/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")

The cron job was:
# m h  dom mon dow   command
2   *    *   *   *   test $(date +%u) -eq 3 && echo Wed21

Thanks


-- Package-specific info:
--- EDITOR:


--- /usr/bin/editor:
/usr/bin/vim.basic

--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 31100 Sep 18 23:35 /usr/bin/crontab

--- /var/spool/cron:
drwxr-xr-x 5 root root 4096 Nov 13  2009 /var/spool/cron

--- /var/spool/cron/crontabs:
drwx-wx--T 2 root crontab 4096 May 13  2009 /var/spool/cron/crontabs

--- /etc/cron.d:
drwxr-xr-x 2 root root 4096 Sep 19 14:21 /etc/cron.d

--- /etc/cron.daily:
drwxr-xr-x 2 root root 4096 Sep 20 21:59 /etc/cron.daily

--- /etc/cron.hourly:
drwxr-xr-x 2 root root 4096 Sep 19 14:21 /etc/cron.hourly

--- /etc/cron.monthly:
drwxr-xr-x 2 root root 4096 Sep 19 14:21 /etc/cron.monthly

--- /etc/cron.weekly:
drwxr-xr-x 2 root root 4096 Sep 19 14:21 /etc/cron.weekly


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cron depends on:
ii  adduser         3.113   
ii  debianutils     4.0.2   
ii  dpkg            1.16.0.3
ii  libc6           2.13-21 
ii  libpam-runtime  1.1.3-2 
ii  libpam0g        1.1.3-2 
ii  libselinux1     2.1.0-1 
ii  lsb-base        3.2-28  

Versions of packages cron recommends:
ii  ssmtp [mail-transport-agent]  2.64-5

Versions of packages cron suggests:
ii  anacron        2.3-14 
ii  checksecurity  <none> 
ii  logrotate      3.7.8-6

Versions of packages cron is related to:
pn  libnss-ldap   <none>
pn  libnss-ldapd  <none>
pn  libpam-ldap   <none>
pn  libpam-mount  <none>
pn  nis           <none>
pn  nscd          <none>

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to