In addition, there are housekeeping programs (eg updatestats) that
should be run regularly to keep the model statistics up to date, even on
systems where the download system is not in active use.
*nix like systems: Linux, MacOS X, Solaris, etc
For these systems, the automatic execution system is known as crontab
and it's operation is managed by a somewhat cryptic program also called
crontab. Normally crontab will be running already since it is
used by the operating system itself for housekeeping. It is important to
understand that crontab does not "wake up" a machine that is switched off
or suspended, and so setting to run an overnight job when you turn it off
each evening as you go to bed will not prove useful because the job will
never run. If the machine is left on, as most servers probably will be,
a time in the early hours of the morning will probably be fine; if the
machine is normally switched off overnight, choose a time when the machine
has a good chance of being switched on. The jobs will run in the background
and will not affect other users of the system particularly.
Housekeeping (updatestats)
There is currently only one housekeeping program, updatestats
which updates the model records (statistics, what they do, etc). Generally
I'd recommend running this once per day, just after midnight (modulo the
advice above about making sure the machine will be on at that time). To
do this, as a suitable administrative user, open a terminal window and
type:
% crontab -eand add the following line to the file:
15 0 * * * /usr/local/bin/updatestats
To enable the automatic scanning feature, you need once again to open a
terminal window and add the following line into your crontab:
22 0 * * * /usr/local/bin/refresh
42 0 * * 2,5 /usr/local/bin/refresh -a
Once refresh has been run, any newly discovered sets will be registered
in the WACS system - they can be examined using the Download list
wacsdnllist or are listed per-model in the detailed model
page wacsmodelpage. In order for them to be downloaded automatically
you will also have to invoke the getarc command at some suitable point -
I choose 6:45 in the morning. To set this up, you add the following
to the crontab in the same way as above:
45 6 * * * /usr/local/bin/getarcThe cron command when it runs will automatically email you with the details of what happened for each of the commands you've set it up to run.