Your message dated Mon, 30 Jan 2012 10:47:12 +0000
with message-id <[email protected]>
and subject line Bug#642309: fixed in cron 3.0pl1-121
has caused the Debian Bug report #642309,
regarding crontab(5) manpage contains incorrect example -- "test $(date +%u)
-eq 0"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
642309: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=642309
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cron
Version: 3.0pl1-116
Severity: minor
The crontab(5) manual page contains the following example:
# Run on every second Saturday of the month
0 4 8-14 * * test $(date +%u) -eq 6 && echo "2nd Saturday"
It should read as follows (note the backslash before the percent-sign):
# Run on every second Saturday of the month
0 4 8-14 * * test $(date +\%u) -eq 6 && echo "2nd Saturday"
That's because, as the manpage says elsewhere:
The entire command portion of the line, up to a newline or % character,
will be executed by /bin/sh or by the shell specified in the SHELL
variable of the crontab file. Percent-signs (%) in the command, unless
escaped with backslash (\), will be changed into newline characters,
and all data after the first % will be sent to the command as standard
input.
Cheers,
- Dwayne
-- Package-specific info:
--- EDITOR:
not set
--- usr/bin/editor:
/bin/nano
--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 30248 Dec 18 2010 /usr/bin/crontab
--- /var/spool/cron
drwxr-xr-x 5 root root 4096 Mar 12 2003 /var/spool/cron
--- /var/spool/cron/crontabs
drwx-wx--T 2 root crontab 4096 Sep 25 22:17 /var/spool/cron/crontabs
-- System Information:
Debian Release: 6.0.2
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-xen-686 (SMP w/1 CPU core)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
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.11 Debian package management system
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libpam-runtime 1.1.1-6.1 Runtime support for the PAM librar
ii libpam0g 1.1.1-6.1 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 lockfile-progs 0.1.15 Programs for locking and unlocking
ii postfix [mail-transport 2.7.1-1+squeeze1 High-performance mail transport ag
Versions of packages cron suggests:
pn anacron <none> (no description available)
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)
ii nscd 2.11.2-10 Embedded GNU C Library: Name Servi
-- debconf-show failed
--
Dwayne C. Litzenberger <[email protected]>
OpenPGP: 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7
--- End Message ---
--- Begin Message ---
Source: cron
Source-Version: 3.0pl1-121
We believe that the bug you reported is fixed in the latest version of
cron, which is due to be installed in the Debian FTP archive:
cron_3.0pl1-121.diff.gz
to main/c/cron/cron_3.0pl1-121.diff.gz
cron_3.0pl1-121.dsc
to main/c/cron/cron_3.0pl1-121.dsc
cron_3.0pl1-121_i386.deb
to main/c/cron/cron_3.0pl1-121_i386.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Javier Fernández-Sanguino Peña <[email protected]> (supplier of updated cron
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Mon, 19 Sep 2011 00:20:17 +0200
Source: cron
Binary: cron
Architecture: source i386
Version: 3.0pl1-121
Distribution: unstable
Urgency: low
Maintainer: Javier Fernández-Sanguino Peña <[email protected]>
Changed-By: Javier Fernández-Sanguino Peña <[email protected]>
Description:
cron - process scheduling daemon
Closes: 642309 643603 643897 653304 653720
Changes:
cron (3.0pl1-121) unstable; urgency=low
.
* debian/control:
- Put the maintainer address in UTF-8 encoding
* debian/postinst:
- Only go ahead when configuring the package (Closes: #653304)
* debian/source/lintian-overrides:
- Removed, no longer required
* crontab.5:
- Escape the '%' in the examples so that they can work when copied over to
crontab (Closes: #642309)
- Remove tabs from manpage since they are not formatted properly in the
nonfill area
* cron.8, crontab.1, crontab.5:
- Fix formatting errors in manual pages with patch provided by David
Prévot (Closes: #643603)
* debian/cron.default:
- Fix typo (Closes: #643897)
* debian/compat:
- Set to compatibility version 9 to enable hardened build flags
(Closes: #653720)
Checksums-Sha1:
e92ec0dae7ca8a20411296a0e65f0e8427cca322 1267 cron_3.0pl1-121.dsc
4063536738ef792559fec27bff21e1209e7cf492 97155 cron_3.0pl1-121.diff.gz
63631e3f99771327a1bf6493199488ec7b4b45f5 107024 cron_3.0pl1-121_i386.deb
Checksums-Sha256:
a28d3eda0a3a234e8ea75d2c89b13b3084ffcbfe64e776adf27f5aa87900b869 1267
cron_3.0pl1-121.dsc
199f37bc62b429717e844182d39c15d096cd154e15b3b6bba83719c8f3a4b762 97155
cron_3.0pl1-121.diff.gz
7f028a2bafa6e6b145550d0c4fdfac16ef0d47efc37dc87ae92a0a79b93faa79 107024
cron_3.0pl1-121_i386.deb
Files:
4924888b6aaeb10d578759eb01bc9a97 1267 admin important cron_3.0pl1-121.dsc
675c96fc9c663b5691266204595810e2 97155 admin important cron_3.0pl1-121.diff.gz
e118afcf10bc2da68412b9bdafe6f68e 107024 admin important
cron_3.0pl1-121_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iD8DBQFPJnC7sandgtyBSwkRAmFsAJ4vg9+z3IXg8IbNMpyf4HfGEOq4vQCfZw6p
EXuCVlkdWkztFZ2L20M1dSk=
=Znt2
-----END PGP SIGNATURE-----
--- End Message ---