Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!asuvax!hrc!microm!bradf!brad From: brad@bradf.UUCP (Bradley W. Fisher) Newsgroups: comp.unix.questions Subject: Re: crontab update Summary: update your crontab w/o reboot Keywords: crontab,question,update table,update crontab file Message-ID: <223@bradf.UUCP> Date: 26 Feb 90 01:37:54 GMT References: <855@edstip.EDS.COM> Distribution: na Organization: Brad Fisher, Mesa, AZ Lines: 23 In article <855@edstip.EDS.COM>, ohrnb@edstip.EDS.COM (Erik Ohrnberger) writes: > > I have a question about the safest way to update the cron program's > crontab file .......... > .... Is there a special procedure to correctly update the crontab file? > According to Rebecca Thomas and Rik Farrow, authors of UNIX ADMINISTRATION GUIDE FOR SYSTEM V (ISBN 0-13-942889-5), page 23 (not *exactly* verbatim but accurate ... BTW this book has many useful tidbits in it) .... $ crontab -l > /tmp/crontab # this lists your crontab to a temporary file [ edit the file /tmp/crontab ... with vi for instance] $ crontab /tmp/crontab # forces cron to read the new crontab file Of course, if you are logged in as root and want to change root's crontab file you'll see a "#" instead of "$" prompt. -- I'm just a wanna be UNIX guru (IJWBUG) | Micro Maintenance, Inc. | 2465 W. 12th St. #6 -== Brad Fisher ==- | Tempe, Arizona 85281 ...!asuvax!mcdphx!hrc!microm!brad | 602/894-5526