[ LUGOS ] Remote command in crontab

Saso Saso at VSecureIT.net
Fri Jan 19 03:19:36 CET 2001


In message <3A671014.4C60BFC1 at guest.arnes.si>, Nejc Skoberne writes:
>Zdravo.
>
>Imam dve vprasanji:

>2. Postavil sem Linux streznik, in ga nastavil tako, da se na internet
>priklaplja med delavniki od 
>6h do 17h na vsakih 10 minut, od 17h do 6h pa na usako uro, med sobotami
>in nedeljami pa prav tako
>vsako uro. Jaz sem to nastavil s crontabom na nek cuden nacin, da imam
>tako v bistvu 3 crontab 
>datoteke, ki se menjujejo, cron pa poganja ob vsaki uri, ko je cas za
>spremembo fileja posebno
>skriptico, ki preimenuje datoteke ... v glavnem, komplicirano. A obstaja
>mogoce tud kaksen nacin
>da bi jaz to v crontab od roota napisal v eni al dveh vrsticah naj pocne
>vse tisto, kar sem prej 
>nastel? Da, bral sem man in nisem razumel. ;) 


#minute hour    mday    month   wday    command
#Delavnik1:

10,20,30,40,50 6,7,8,9,10,11,12,13,14,15,16,17 * * 1,2,3,4,5 /bin/whatever

  crontab Entry Format
     A crontab file consists of lines of six  fields  each.   The
     fields  are separated by spaces or tabs.  The first five are
     integer patterns that specify the following:

        minute (0-59),
        hour (0-23),
        day of the month (1-31),
        month of the year (1-12),
        day of the week (0-6 with 0=Sunday).

Saso





More information about the lugos-list mailing list