Adding new entry into /etc/periodic/

Did you know that you can easily add new time intervals into the system’s periodic feature?

Let’s add /etc/periodic/hourly as the example:

#> mkdir /etc/periodic/hourly 
#> # creating the crontab entry to run scripts at 25 minutes every hour 
#> echo "25	*	*	*	*	root	periodic hourly" >> /etc/crontab

into /etc/periodic.conf:

hourly_output="root"				# user or /file
weekly_show_success="NO"			# scripts returning 0
weekly_show_info="YES"				# scripts returning 1
weekly_show_badconfig="NO"			# scripts returning 2

That’s all. We are done! Now you can place executable scripts into /etc/periodic/hourly and they will run every hour under root account.


Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: