Gentoo Archives: gentoo-user-br

From: Felipe Prenholato <philipe_rp@×××××××××.br>
To: gentoo-user-br@l.g.o
Subject: Re: [gentoo-user-br] How I find the time
Date: Tue, 01 Nov 2005 14:43:25
Message-Id: 43677EA7.5090200@yahoo.com.br
In Reply to: Re: [gentoo-user-br] How I find the time by "Thiago Lüttig"
1 sim sim, o meu ta igual, mas saca só:
2
3 ---------------8<--------------------
4 # if there is no touch file, make one then run the scripts
5 if [ ! -e ${LOCKDIR}/cron.$BASE ]
6 then
7 touch ${LOCKDIR}/cron.$BASE
8
9 set +e
10 for SCRIPT in $CRONDIR/*
11 do
12 if [[ -x $SCRIPT && ! -d $SCRIPT ]]; then
13 $SCRIPT
14 fi
15 done
16 fi
17 ---------------8<--------------------
18
19 Isso ai é parte do código do script /usr/sbin/run-crons.
20 Ele só executa os scripts dentro dos crondirs se não tiver o
21 ${LOCKDIR}/cron.$BASE relacionado.
22
23 Da uma lida no /usr/sbin/run-crons q ti entende melhor.
24
25 :wq
26
27 chronos
28
29 Thiago Lüttig wrote:
30
31 > ahh beleza.. mas da uma olhada no meu /etc/crontab
32 >
33 >
34 > # for vixie cron
35 > #
36 > # $Header:
37 > /var/cvsroot/gentoo-x86/sys-process/vixie-cron/files/crontab-3.0.1-r4
38 > ,v 1.1 2005/03/04 23:59:48 ciaranm Exp $
39 > #
40 > #
41 >
42 > # Global variables
43 > SHELL=/bin/bash
44 > PATH=/sbin:/bin:/usr/sbin:/usr/bin
45 > MAILTO=root
46 > HOME=/
47 >
48 > # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
49 > 0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
50 > 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
51 > 15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
52 > 30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
53 > */10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
54 >
55 >
56 > On 11/1/05, *Felipe Prenholato* <philipe_rp@×××××××××.br
57 > <mailto:philipe_rp@×××××××××.br>> wrote:
58 >
59 > in /etc/crontab file.
60 >
61 > OBS: this file not is file edited by the command crontab -e. this file
62 > is used only for /etc/cron.* directories.
63 >
64 > One ask. You don't speak portuguese?
65 >
66 > bye
67 >
68 > chronos.
69 >
70 > Thiago Lüttig wrote:
71 >
72 > > How I find the exactly time that some script into
73 > /etc/cron.daily runs ???
74 > >
75 > > --
76 > > ______________________________
77 > >
78 > > Atenciosamente,
79 > > Thiago Lüttig
80 > >
81 > > ______________________________
82 >
83 >
84 >
85 >
86 >
87 >
88 > _______________________________________________________
89 > Promoção Yahoo! Acesso Grátis: a cada hora navegada você
90 > acumula cupons e concorre a mais de 500 prêmios! Participe!
91 > http://yahoo.fbiz.com.br/
92 >
93 > --
94 > gentoo-user-br@g.o <mailto:gentoo-user-br@g.o>
95 > mailing list
96 >
97 >
98 >
99 >
100 > --
101 > ______________________________
102 >
103 > Atenciosamente,
104 > Thiago Lüttig
105 >
106 > ______________________________
107
108
109
110
111
112
113 _______________________________________________________
114 Promoção Yahoo! Acesso Grátis: a cada hora navegada você
115 acumula cupons e concorre a mais de 500 prêmios! Participe!
116 http://yahoo.fbiz.com.br/
117 --
118 gentoo-user-br@g.o mailing list