1 |
On Mon, 5 Dec 2005 15:39:00 +0100, Andres Becerra Sandoval wrote: |
2 |
|
3 |
> What I want to do is to generate this file everyday with a crontab |
4 |
> entry like this: |
5 |
> |
6 |
> 45 6 * * * /usr/bin/glsa-check -l new > /tmp/`date +%F`.glsa |
7 |
> |
8 |
> The problem is that this is not working, it works in the shell, but it |
9 |
> doesn't works from cron. If anybody can enlight me, I would appreciate |
10 |
> it. |
11 |
|
12 |
It is probably the redirection screwing things up, but you don't need it |
13 |
with cron. As long as you have cron configured to mail its output to you, |
14 |
you only need |
15 |
|
16 |
45 6 * * * /usr/bin/glsa-check -l new |
17 |
|
18 |
or, as I prefer to only see the effects on installed packages |
19 |
|
20 |
45 6 * * * /usr/bin/glsa-check -t all |
21 |
|
22 |
|
23 |
-- |
24 |
Neil Bothwick |
25 |
|
26 |
When there's a will, I want to be in it. |