Return to BSD News archive
Path: sserve!euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!oleane!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!EU.net!Germany.EU.net!news.dfn.de!news.uni-augsburg.de!lrz-muenchen.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail From: j@bonnie.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: crontab and sh scripts Date: 11 Aug 1995 10:33:04 +0200 Organization: Private U**x site, Dresden. Lines: 22 Message-ID: <40f4k0$7m8@bonnie.tcd-dresden.de> References: <marcus.216.0111D480@ccelab.iastate.edu> Reply-To: joerg_wunsch@uriah.heep.sax.de NNTP-Posting-Host: 192.109.108.139 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Marcus I. Ryan <marcus@ccelab.iastate.edu> wrote: >Basically is greps through the log files a few hundred times :) (Btw., you might get better performance writing this in Perl.) >#Generate New Prelim Logfiles every day at midnight. >59 23 * * * root /usr/local/bin/stathtml \ >`date +" %b %B"` >Security issues aside, what am I doing wrong here? Which crontab file are you using? Confusingly enough, there are two sorts of crontab files: /etc/crontab, for the traditionalists (which IMHO opens up a security hole), and /var/cron/tabs/*, as managed by the crontab(1) command. Your syntax is correct for the former, while the latter don't use the `user' field (since the files are kept on a per-user basis). -- cheers, J"org private: joerg_wunsch@uriah.heep.sax.de http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)