Deamon to execute a program automatically

bria!mike bria!mike
Thu Jan 24 14:19:29 AEST 1991


In an article, Kent Hioe writes:
>Hi, I need some information on how to create a deamon from the Xenix-OS.
>I would like to create a deamon that will execute a program at certain time
>every night. How can I do that ?
>ie, at 2:00 am I would like to execute data backup automatically.

Look up the contabs entry in the manual; basically, there is already a
daemon called 'cron' that executes commands at scheduled times.  This
daemon reads files in /usr/spool/cron/crontabs that contain the commands
in question.  For example, to do the backup, you would put an entry in
/usr/spool/cron/crontabs/root that looks like:

0 2 * * * /usr/local/bin/do_backup

Again, it's all in the manual.
-- 
Michael Stefanik, Systems Engineer (JOAT), Briareus Corporation
UUCP: ...!uunet!bria!mike
--
technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly
found to be saying things like "Well, it works on my DOS machine ..."



More information about the Comp.unix.xenix.sco mailing list