Package: mirmon
Version: 2.6-1
Severity: minor
spent sometime wondering WTF but then RTFM:
$ man 5 crontab | grep '%' | head -1
The ``sixth'' field (the rest of the line) specifies the command
to be run. 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.
So, following crontab entry in man mirmon would not work:
42 * * * * perl -e 'printf "%s\n", time' > /path/to/archive/TIME
and would require escaping
42 * * * * perl -e 'printf "\%s\n", time' > /path/to/archive/TIME
hereby I am passing the estaphete to you so you could reporbug:
$ man 5 crontab | grep '%' | tail -1
0 4 8-14 * * test $(date +%u) -eq 6 && echo "2nd Saturday"
which I bet would not work as well ;-)
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental'), (100,
'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mirmon depends on:
ii perl 5.14.2-9
Versions of packages mirmon recommends:
ii perl-doc 5.14.2-6
Versions of packages mirmon suggests:
ii apache2-mpm-worker [httpd] 2.2.20-1
ii wget 1.13-1
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]