diff options
Diffstat (limited to 'upstream/opensuse-tumbleweed/man5/crontab.5')
-rw-r--r-- | upstream/opensuse-tumbleweed/man5/crontab.5 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/upstream/opensuse-tumbleweed/man5/crontab.5 b/upstream/opensuse-tumbleweed/man5/crontab.5 index 0c6a300a..341c119b 100644 --- a/upstream/opensuse-tumbleweed/man5/crontab.5 +++ b/upstream/opensuse-tumbleweed/man5/crontab.5 @@ -98,7 +98,8 @@ This option is useful if you decide to use /bin/mail instead of aliasing and UUCP usually does not read its mail. If .I MAILFROM is defined (and non-empty), it is used as the envelope sender address, -otherwise, ``root'' is used. +otherwise, the username of the executing user is used. This variable is +also inherited from the crond process environment. .PP (Note: Both .I MAILFROM @@ -297,8 +298,8 @@ crontab entry won\'t cause that entry to be executed every 35 minutes; instead, it will be executed twice every hour, at 0 and 35 minutes past. For more fine-grained control you can do something like this: .nf -* * * * * if [ $(expr \( $(date +\%s) / 60 \) \% 58) = 0 ]; then echo this runs every 58 minutes; fi -0 * * * * if [ $(expr \( $(date +\%s) / 3600 \) \% 23) = 0 ]; then echo this runs every 23 hours on the hour; fi +* * * * * if [ $(expr \\( $(date +%s) / 60 \\) % 58) = 0 ]; then echo this runs every 58 minutes; fi +0 * * * * if [ $(expr \\( $(date +%s) / 3600 \\) % 23) = 0 ]; then echo this runs every 23 hours on the hour; fi .fi Adjust as needed if your .BR date (1) |