Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Configuration > Issue <<  443 of 608 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 2871
Last update: 07-01-04
Issue:
How do you schedule automatic errata updates to only happen at night?
Resolution:
There is no way to do this through Red Hat Network (RHN). You can setup a crontab to execute the up2date -u command at a certain time. You must make a file, using the following format:


field          allowed values
-----          --------------
minute         0-59
hour           0-23
day of month   1-31
month          1-12 (or names, see below)
day of week    0-7 (0 or 7 is Sun, or use names)
      


If you wanted a system to update itself at 1 A.M. every day you could create a file called update.txt with the following content:
0 1 * * * /usr/bin/up2date -u
Then you want to insert this into the crontab database by using the following command:
crontab <filename>
For example:


$ crontab update.txt
$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (update.txt installed on Tue Jun  1 16:05:40 2004)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
0 1 * * * /usr/bin/up2date -u
      


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Configuration > Issue <<   443  of  608  >>