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

Hi,

Amongst the examples given in crontab(5), one can find:

# Run on every second Saturday of the month
0 4 8-14 * *    test $(date +%u) -eq 6 && echo "2nd Saturday"

This doesn't work, because % is special (in the same
manpage: "Percent-signs (%) in the command, unless escaped
with backslash (\), will be changed into newline
characters")

The correct line should read:
0 4 8-14 * *    test $(date +\%u) -eq 6 && echo "2nd Saturday"

Cheers,
Y.

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

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

--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 30248 Dec 19  2010 /usr/bin/crontab

--- /var/spool/cron
drwxr-xr-x 5 root root 4096 Oct 11  2005 /var/spool/cron

--- /var/spool/cron/crontabs
drwx-wx--T 2 root crontab 4096 Apr 21 10:33 /var/spool/cron/crontabs


-- System Information:
Debian Release: 6.0.7
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages cron depends on:
ii  adduser               3.112+nmu2         add and remove users and groups
ii  debianutils           3.4                Miscellaneous utilities specific t
ii  dpkg                  1.15.8.13          Debian package management system
ii  libc6                 2.13-37            Embedded GNU C Library: Shared lib
ii  libpam-runtime        1.1.1-6.1+squeeze1 Runtime support for the PAM librar
ii  libpam0g              1.1.1-6.1+squeeze1 Pluggable Authentication Modules l
ii  libselinux1           2.0.96-1           SELinux runtime shared libraries
ii  lsb-base              3.2-23.2squeeze1   Linux Standard Base 3.2 init scrip

Versions of packages cron recommends:
ii  exim4                    4.72-6+squeeze3 metapackage to ease Exim MTA (v4) 
ii  exim4-daemon-heavy [mail 4.72-6+squeeze3 Exim MTA (v4) daemon with extended
ii  lockfile-progs           0.1.15+squeeze1 Programs for locking and unlocking

Versions of packages cron suggests:
ii  anacron                       2.3-14     cron-like program that doesn't go 
pn  checksecurity                 <none>     (no description available)
ii  logrotate                     3.7.8-6    Log rotation utility

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

-- 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