[Bug 1110147] Re: Error in manual
Ubuntu Foundations Team Bug Bot
1110147 at bugs.launchpad.net
Wed Jan 30 12:19:50 UTC 2013
The attachment "cron-man.patch" of this bug report has been identified
as being a patch. The ubuntu-reviewers team has been subscribed to the
bug report so that they can review the patch. In the event that this is
in fact not a patch you can resolve this situation by removing the tag
'patch' from the bug report and editing the attachment so that it is not
flagged as a patch. Additionally, if you are member of the ubuntu-
reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by
Brian Murray. Please contact him regarding any issues with the action
taken in this bug report.]
** Tags added: patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cron in Ubuntu.
https://bugs.launchpad.net/bugs/1110147
Title:
Error in manual
Status in “cron” package in Ubuntu:
New
Bug description:
The manual for crontab(5) shows various examples of using the date command as such:
$(date +%u)
This contradicts the note specifying that any % sign needs to be
escaped
Entering something like that as a command for execution fails to
interpret anything past the % sign.
so, for example:
* * * * * echo $(date +%Y)
fails with
/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")
The syslog shows this
CRON[10104]: (root) CMD (echo $(date +)
Simply escaping the % resolves it, so in this example, the manual
should be updated so that each 'date' example looks as
$(date +\%u) - or whatever the format character example is.
My example cron from above executes as expected as
* * * * * echo $(date +\%Y)
which send me an email simply with "2013"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cron/+bug/1110147/+subscriptions
More information about the foundations-bugs
mailing list