system status

Steve Stavropoulos steve at math.upatras.gr
Tue Mar 14 18:48:27 EET 2006


Emeis pali sto Raleigh ths North Carolina exoume sto /etc/crontab ta e3hs:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

kai den molynoume to crontab tou root me ahdies :>

(epishs sto cron.daily exoume to logwatch pou kanei ena wraio summary
me to activity ths meras kai sto stelnei me mail)

On 3/14/06, Michael Iatrou wrote:
> When the date was Monday 13 March 2006 20:24, Giorgos Keramidas wrote:
> >
> > Εμείς στη Βιλαρίμπα έχουμε στο cron του root τα εξής:
> >
> >
> >       # /etc/crontab - root's crontab for FreeBSD
> >       #
> >       # $FreeBSD: src/etc/crontab,v 1.32 2002/11/22 16:13:39 tom Exp $
> >       #
> >       SHELL=/bin/sh
> >       PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
> >       HOME=/var/log
> >       # Perform daily/weekly/monthly maintenance.
> >       1       3       *       *       *       root    periodic daily
> >       15      4       *       *       6       root    periodic weekly
> >       30      5       1       *       *       root    periodic monthly
> >
> > Και το periodic(1) διαβάζει μια συλλογή από scripts από τους καταλόγους:
> >
> >       /etc/periodic/daily
> >       /etc/periodic/weekly
> >       /etc/periodic/monthly
> >
> > Το source από τα scripts είναι ελεύθερα διαθέσιμο από τη διεύθυνση:
> >
> >       http://cvsweb.freebsd.org/src/etc/periodic/
> >
> > Δεν είναι 100% σίγουρο ότι όλα αυτά τα scripts τρέχουν χωρίς αλλαγές και
> > σε οποιοδήποτε Linux, αλλά από τα περιεχόμενά τους μπορεί να πάρεις
> > ιδέες και να γράψεις κάτι δικό σου :)
>
> Καλά, και στο μικρό Γαλατικό χωριό, μια από τα ίδια είναι:
>
> root at wintermute:~# crontab -l
> # If you don't want the output of a cron job mailed to you, you have to direct
> # any output to /dev/null.  We'll do this here since these jobs should run
> # properly on a newly installed system, but if they don't the average newbie
> # might get quite perplexed about getting strange mail every 5 minutes. :^)
> #
> # Run the hourly, daily, weekly, and monthly cron jobs.
> # Jobs that need different timing may be entered into the crontab as before,
> # but most really don't need greater granularity than this.  If the exact
> # times of the hourly, daily, weekly, and monthly cron jobs do not suit your
> # needs, feel free to adjust them.
> #
> # Run hourly cron jobs at 47 minutes after the hour:
> 47 * * * * /usr/bin/run-parts /etc/cron.hourly 1> /dev/null
> #
> # Run daily cron jobs at 4:40 every day:
> 40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
> #
> # Run weekly cron jobs at 4:30 on the first day of the week:
> 30 4 * * 0 /usr/bin/run-parts /etc/cron.weekly 1> /dev/null
> #
> # Run monthly cron jobs at 4:20 on the first day of the month:
> 20 4 1 * * /usr/bin/run-parts /etc/cron.monthly 1> /dev/null
>
> και
>
> iatrou at wintermute:~$ zcat /usr/man/man8/run-parts.8.gz | groff -Tascii -man
> RUN-PARTS(8)                                                      RUN-PARTS(8)
>
>
>
> NAME
>        run-parts - run scripts found in a directory
>
> SYNOPSIS
>        run-parts <directory>
>
>
> DESCRIPTION
>        run-parts is a utility that will run scripts that are found in a direc-
>        tory.  For example, it might be useful  to  create  an  /etc/cron.daily
>        directory and put scripts in there for daily cron jobs.  Then run-parts
>        can be called once a day from root's crontab to  run  all  the  scripts
>        found in /etc/cron.daily:
>
>        40 4 * * * run-parts /etc/cron.daily
>
>        run-parts automatically skips files with certain suffixes that are gen-
>        erally associated with backup or extra files.  Any file  that  ends  in
>        one  of  these  will  be  silently  ignored:   ~ ^ , .bak .new .rpmsave
>        .rpmorig .rpmnew .swp
>
> AUTHOR
>        Patrick J. Volkerding  <volkerdi at slackware.com>,  with  ideas  borrowed
>        from the Red Hat and Debian versions of this utility.
>
> SEE ALSO
>        crond(8), crontab(8).
>
>
>
> Slackware Version 8.1.0           14 Apr 2002                     RUN-PARTS(8)
>




More information about the Linux-greek-users mailing list