Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2006 07:03:20 +0800
From:      "Marlon Martin" <mmp013@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   cron question
Message-ID:  <b2e814f30604041603i3149fdfene6d7c4c6ec58cf21@mail.gmail.com>

index | next in thread | raw e-mail

i created a simple shell script:

filename: rn

#!/bin/sh
rndc dumpdb

what it does, is just dump the hostname and IP addresses in /var/dump
i set the time in 2 minutes but when i checked the logs, it doesnt work any
idea what did i missed here?

==============================================

SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
#
#minute	hour	mday	month	wday	who	command
#
*/5	*	*	*	*	root	/usr/libexec/atrun
#
# Save some entropy so that /dev/random can re-seed on boot.
*/11	*	*	*	*	operator /usr/libexec/save-entropy
#
# Rotate log files every hour, if necessary.
0	*	*	*	*	root	newsyslog
#
# Perform daily/weekly/monthly maintenance.
1	3	*	*	*	root	periodic daily
15	4	*	*	6	root	periodic weekly
30	5	1	*	*	root	periodic monthly
/2     *       *       *       *         root   /home/ken/rn
#
# Adjust the time zone if the CMOS clock keeps local time, as opposed to
# UTC time.  See adjkerntz(8) for details.
1,31	0-5	*	*	*	root	adjkerntz -a


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b2e814f30604041603i3149fdfene6d7c4c6ec58cf21>