Cron Daemon
Pavlos Parissis
surfking at ath.forthnet.gr
Mon Apr 5 21:23:46 EEST 1999
Hello all,
Sthn prospatheiamou na programatiso kapies kathimerines ergasies ematha
gia to cron daemon poy kanei akrivos afto pou thelo.
Vasika einai 2 einai oi ergasies pou thelo na kano
clean ton /tmp apo files pou dhmiourgisan pogramata kai den ta esvisan
kai updatedb.
Diavazontas ta manual tou cron kai crontab eida oti prepei to crontab na
iparxei 'h sto etc 'h sto /var/spool/cron. Ego to exo sto etc kai exei
ta parakato:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
# 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
stous parapano dirs exo ta parakato files:
cron.daily
|-- logrotate
|-- tmpwatch
`-- updatedb.cron
cron.hourly
cron.monthly
cron.weekly
`-- makewhatis.cron
Apo oti katalava mono to makewhatis.cron ektelite logo oti sto
crontab exei 41**, sosta?
Ean ta leo sosta gia na ektelesth to updatedb weekly kai oxi kathimerina
tha prepei na kano mv ston weekly dir kai na kano thn gramh sto crontab
etsi:
22 4 1 * 0 root run-parts /etc/cron.weekly
sosta? Oi numbers 1,2,22.... ti einai?
Tora gia na kano clean ton /tmp apo palia files den vrika tipota sxetiko
sto book pou agorasa(Linux Network Toolkit) oute kai sto "Linux in 24
Hours" pou einai mapa.
Exete kamia idea?
Kai kati allo sxetika me to updatedb,
otan pao doso updatedb san user pernw:
"could not create temporary locate db"
diavazo to script kai "katalaveno" oti kati den pai kala me ta permission.
h database tou locate einai sto /var/lib kai to lib dir exei 755 permission kai to
locatedb exei 544.
ean alakso ta parapano permission oste kai o user na trexei updatedb "logika"
tha doulepsi, alla tha kano xontri gkafa?
Ean kapios exei xrono na mou eksixisi ti pezete efxaristos na ton akouso.
Filika kai KALO PASXA SE OLOUS,
Pavlos
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I love having the feeling of being in control
while i have the sensation of speed
The surfer of life
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================
More information about the Linux-greek-users
mailing list