diff options
author | job <job@cvs.openbsd.org> | 2020-01-06 19:44:10 +0000 |
---|---|---|
committer | job <job@cvs.openbsd.org> | 2020-01-06 19:44:10 +0000 |
commit | 5e90370432ed440628c5d2bdbae2b7d47fefacfc (patch) | |
tree | dde8de7c67df9f6a6de95a2fd7a74e2468606c4d /usr.sbin/cron | |
parent | fc4782a5f30381d7ddd614674450c1542ebb9fcf (diff) |
Add "-n" to EXAMPLES in crontab(5)'s man page
OK Ingo Schwarze
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r-- | usr.sbin/cron/crontab.5 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/cron/crontab.5 b/usr.sbin/cron/crontab.5 index ec73617193c..f9b4446cf87 100644 --- a/usr.sbin/cron/crontab.5 +++ b/usr.sbin/cron/crontab.5 @@ -17,9 +17,9 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT .\" OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.\" $OpenBSD: crontab.5,v 1.36 2018/06/13 13:27:37 jmc Exp $ +.\" $OpenBSD: crontab.5,v 1.37 2020/01/06 19:44:09 job Exp $ .\" -.Dd $Mdocdate: June 13 2018 $ +.Dd $Mdocdate: January 6 2020 $ .Dt CRONTAB 5 .Os .Sh NAME @@ -307,11 +307,16 @@ MAILTO=paul # # run five minutes after midnight, every day 5 0 * * * $HOME/bin/daily.job >> $HOME/tmp/out 2>&1 -# run at 2:15pm on the first of every month -- output mailed to paul -15 14 1 * * $HOME/bin/monthly + +# run at 2:15pm on the first of every month -- job output will be sent +# to paul, but only if $HOME/bin/monthly exits with a non-zero exit code +15 14 1 * * -n $HOME/bin/monthly + # run at 10 pm on weekdays, annoy Joe 0 22 * * 1-5 mail -s "It's 10pm" joe%Joe,%%Where are your kids?% + 23 0-23/2 * * * echo "run 23 minutes after midn, 2am, 4am ..., everyday" + 5 4 * * sun echo "run at 5 after 4 every sunday" .Ed .Sh SEE ALSO |