[olug] cron

mesc mescie at home.com
Fri Jul 21 23:16:54 UTC 2000


This is the file generated by crontab -e.....

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.846 installed on Fri Jul 21 09:48:49 2000)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp
$)
* * * * * find / -name "core*" -exec ls -l {} \

* * * * * /usr/bin/updatedb

* * * * * /usr/local/etc/logcheck.sh......
I know the timestamps are all *'s but I plan on changing them to the time/date I
need.Also if I replace a *  with the appropiate # the chosen line will not run.
Now this is my /etc/crontab file.I don't know what's different about it and the
crontab -l file but I am running both.I'm not sure if I need to though.
    Modified

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=mescie at home.com
HOME=/

# run-parts
/usr/local/etc/logcheck.sh
* 14 * * find / -name "core*" -exec ls\
-l {} \
#root /etc/cron.daily/logrotate
* * * * 0 /usr/bin/updatedb
#* * * * * root run-parts/etc/cron.monthly
# Mandrake-Security : if you remove this comment, remove the next line
too.
0 0 * * *    root    /etc/security/msec/cron-sh/security.sh
I'm unsure of which file crond takes the time from to run the application from
I think that's my biggest problem.Which files has to have the time/date in the
line of the application I want crontab to run?Because as Vincent says it appears
updatedb is running every minute when I'd like it to run just once a week.


                Gary Martin.


When you say "This is my crontab file", what do you mean?  Is this the output

> from `crontab -l` ?  If not, let's see that.
>
> updatedb takes a while to run because it's basically indexing the contents of
> your filesystem onto a database.  That's not something you would want to run
> every minute of the hour.
>
> mesc wrote:
> >
> >     I'm making headway with cron,I have it running but it's not  right
> > yet.I have updatedb set to run once a week yet  my HD light is  on
> > constantly so I checked ps aux and this was in there repeatedly..
> > root      1723  0.0  0.9  1276  616 ?        S    10:16   0:00 CROND
> > root      1726  0.6  1.2  1584  760 ?        S    10:16   0:00 sh
> > /usr/bin/updatedb
> > root      1733  2.0  0.7  1112  484 ?        D    10:16   0:00 slocate
> > -u -l 1 -d /var/lib/slocate/sloc
> > I don't even have slocate  in my cron :) This is my crontab
> > file                  Modified
> >
> > SHELL=/bin/bash
> > PATH=/sbin:/bin:/usr/sbin:/usr/bin
> > MAILTO=mescie at home.com
> > HOME=/
> >
> > # run-parts
> > /usr/local/etc/logcheck.sh
> > * 14 * * find / -name "core*" -exec ls\
> > -l {} \
> > #root /etc/cron.daily/logrotate
> > * * * * 0 /usr/bin/updatedb
> > #* * * * * root run-parts/etc/cron.monthly
> > # Mandrake-Security : if you remove this comment, remove the next line
> > too.
> > 0 0 * * *    root    /etc/security/msec/cron-sh/security.sh
> >
> > This is  the file generated  by crontab -e...
> >
> > # DO NOT EDIT THIS FILE - edit the master and reinstall.
> > # (/tmp/crontab.846 installed on Fri Jul 21 09:48:49 2000)
> > # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp
> > $)
> > * * * * * find / -name "core*" -exec ls -l {} \
> >
> > * * * * * /usr/bin/updatedb
> >
> > * * * * * /usr/local/etc/logcheck.sh
> > I know the timestamps is this file aren't right but that's the only way
> > I could get anything to run (yes I'm  trying anything....lol)
> >
> >             Thank you,Gary Martin
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: olug-unsubscribe at bstc.net
> > For additional commands, e-mail: olug-help at bstc.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: olug-unsubscribe at bstc.net
> For additional commands, e-mail: olug-help at bstc.net


---------------------------------------------------------------------
To unsubscribe, e-mail: olug-unsubscribe at bstc.net
For additional commands, e-mail: olug-help at bstc.net



More information about the OLUG mailing list