Cron Daemon,kati vrika...
Pavlos Parissis
surfking at ath.forthnet.gr
Thu Apr 8 00:03:58 EEST 1999
Hello,
Opws eixa pei kai ston Christo Ricudi eixa pismwsei, afto gia ton The
Surfer of Life shmainh 1 pragma oti tha vrh thn lisy o kosmos na
xalash:))
Katarxhn vrika ti shmenoun ta:
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
^_Se pio lepto tha ektelesth h command
^__Se pia wra tha.....
^__Se pia mera tou mhna(Sunday=0,Monday=1......)
^__Se pio mhna (January=0,......)
^__Se pia mera ths week
^__O user pou trexei thn command
^__H command 'h to file pou eketelite
to /etc/crontab einai afto pou periexei ta parapano kai einai apo default stimeno se
RedHat.
O kathe xrhsths exei kai ena diko tou ston dir /var/spool/cron me name to onoma tou
user. O root exei ena apo default xoris na xreiazete na to dhmiourghsh.
Ego gia na ektelo(san root) kathe trith sths 18:05 updatedb ekana ta parakato:
export EDITOR=vi(einai kalh idea na valo afth thn command sto ~/.bash_profile?)
crontab -e
kai egrapsa thn parakato line
05 18 * * 3 /usr/bin/updatedb --prunepaths='/tmp /var/tmp /cdrive /usr/tmp'
save kai exit apo to file.
Perimena na pai i wra 18:05 kai eida apo top pos ontos doulepse.:)
O "*" shmainei oti tha eketelite kathe lepto,mera,mhna.......
Meta pao linuxconf>control>control-panel>superuser schedule.....
kai to vlepo na iparxei ekei h parapanw command.
Otan proxtes piga mesa apo ekei kai evala command updatedb kai ta sxetika profanos
graftikan sto /var/spool/cron/root.
Alla akoma na katalavo giati otan ekana proxtes reset kai egine pipa kolos to pc
meso linuxconf den evlepa to schedule afto,pou ekana prin to reset,
afto den mporo na to gonepso.
Sxetika me cron kai user twra,
me pedepse na dhmiourghso crontab gia ton user.
Sto man lei na doso crontab -u paul file , ala pio file re gamoto afto den to elege.
Ekana ego crontab -u paul /etc/crontab kai ekane ena file sto /var/spool/cron/paul
pou eixe oti eixe to /etc/crontab pou afto einai lathos dioti sta crontab twn user
den grafoume user name stis grammes.
Telika ekana ena vi paul kai meta crontab -u paul paul kai egrapse mesa
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (paul installed on Wed Apr 7 18:25:20 1999)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
oti kanonika eprepe na grapsei dhladh.
Alla den mporo na ektelo to updatedb san user dioti lei
"could not create temporary locate db"
Pao kai vlepo oti to /val/lib exei 755 kai fisiko einai na mhn doulevei h updatedb
dioti h command pai kai grafei thn database ston /var/lib pou o user den exei dikaiwma
na grapsh. Tha mou pite pigene kai vale 777 alla afto emena mou fenete poli megalo
risko dioti den ksero ti tha prokalesi sto systima na exo tetoia permission se afto
ton dir. Kamia idea?
Ola ta parapano kai to mpaxalo pou ekana den tha eixan ginei ean sthn redhat kathotan
kai egrafe ola ta help file gia ton linuxconf.
Kai kati allo, den mporo na vro tropo na mhn mou vgazei sto boot alla kai otan trexo
to linuxconf se console to message oti den vriskei ta greek dictionary ston dir
/usr/lib/linuxconf/help.gr/.........Kamia ideas?
aa kai kati allo,
varethika na dino su -c control-panel gia na kano diafora sto linuxconf, iparxei tropos
na mpaino X san user kai otan pao kapou opws sto linuxconf 'h sto Run Level Editor
ne me rotai ton passwd tou root?
Dioti den me pernei na exo 2 X mazi, logo pc einai poly argossssss:(
Afta....
Filika,
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