Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!bria!mike Newsgroups: comp.unix.xenix.sco Subject: Re: Deamon to execute a program automatically Summary: Use cron Keywords: daemon cron crontabs rtfm Message-ID: <387@bria> Date: 24 Jan 91 03:19:29 GMT References: <91022.084230NU013809@NDSUVM1.BITNET> <1991Jan22.174347.5680@jato.jpl.nasa.gov> Reply-To: bria!mike (Michael Stefanik) Organization: Briareus Corporation, Los Angeles, CA Lines: 21 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 ..."