1 |
On 10/15/06, Grégoire Baron <baronchon@××××.org> wrote: |
2 |
> Hello, |
3 |
> |
4 |
> I am not new in fcron but I have never used all its functionalities. In |
5 |
> fact, I only use &-lines in crontab which are like in Cron. However, |
6 |
> today, I need to use Fcron for executions like once all Friday between |
7 |
> 10:00 and 13:00. So I read Fcrontab(5) again. And I thought %-lines are |
8 |
> what I needed. But, I didn't succeed in understanding how *ly, mid*ly |
9 |
> and *s keywords work. Maybe could you help me. Where could I find more |
10 |
> examples on those %-lines ? |
11 |
> |
12 |
> What I have understood ? |
13 |
> For instance for an execution all Friday between 10:00 and 13:00, I |
14 |
> would write: |
15 |
> %hours * 10-12 * * Fri /what/I/want/to/do |
16 |
> Is it right ? |
17 |
|
18 |
Yes, I think so. |
19 |
|
20 |
> And what are the differences between weekly and midweekly, excepted |
21 |
> Fcron starts to "try" the execution Monday or Thursday ? ... |
22 |
|
23 |
Fcron starts the command if is has not been executed in the period. |
24 |
It's the same, except |
25 |
weekly means mon-sun (or is it sun-mon?) |
26 |
midweekly means thu-wed |
27 |
|
28 |
Imagine you've just configured fcron on monday à 9:00 with |
29 |
%weekly * 0-10 command1 |
30 |
%midweekly * 0-10 command2 |
31 |
|
32 |
Both commands are executed immediately. |
33 |
Tuesday, nothing happens. |
34 |
Wednesday, nothing happens |
35 |
Thursday, command2 is executed, but not command1. |
36 |
Friday, nothing happens |
37 |
Sat, nothing happens |
38 |
Sun, nothing happens |
39 |
Mon, command1 is exectued. |
40 |
|
41 |
You can then understand all over mid* commands. |
42 |
|
43 |
|
44 |
> For *ly and mid*ly, I don't understand the difference between mid |
45 |
> and not mid. What are the differences between: |
46 |
> %daily * 10-12 /what/I/want/to/do |
47 |
> # an execution all days between 10:00 and 13:00 ? |
48 |
> And: |
49 |
> %nightly * 10-12 /what/I/want/to/do |
50 |
> # an execution all nights between 10:00 and 13:00 ? So all days |
51 |
> between 10:00 and 13:00 ... |
52 |
|
53 |
By definition nightly=middaily. |
54 |
|
55 |
But of course, if you indicate an hour which occurs only once in each |
56 |
period, that won't change anything. There will be a difference for |
57 |
%daily * 10-12,17-18 /what/I/want/to/do |
58 |
%nightly * 10-12,17-18 /what/I/want/to/do |
59 |
|
60 |
In practice, there will be a difference if you turn off the computer |
61 |
for lunch time. |
62 |
|
63 |
> Or between: |
64 |
> %hourly 15-30 /what/I/want/to/do |
65 |
> # an execution all hours between -:15 and -:30 ? |
66 |
> And: |
67 |
> %midhourly 15-30 /what/I/want/to/do |
68 |
> # the same ? |
69 |
|
70 |
idem, fcron needs a larger minute frame to have choices |
71 |
|
72 |
> |
73 |
> So can you explain me how work %-lines, or tell me where I could find a |
74 |
> documentation more explicit than Fcrontab(5) ;-) . |
75 |
> |
76 |
I did'nt use more, either :-p |
77 |
http://fcron.free.fr/doc/fr/fcrontab.5.html |
78 |
|
79 |
Hope this helps, |
80 |
-- |
81 |
Régis |
82 |
|
83 |
http://regis.decamps.info/blog/ |
84 |
|
85 |
-- |
86 |
gentoo-user@g.o mailing list |