cron issue

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cron issue

Dave Stevens
I've set up a cron job to run logwatch at night.

Output from command /usr/sbin/logwatch --mailto=....

gives:

/var/cache/logwatch No such file or directory at /usr/sbin/logwatch
line 634.

and line 634 is:

opendir(TMPDIR, $Config{'tmpdir'}) or die "$Config{'tmpdir'} $!";

I don't understand what file is missing. I can confirm
that /var/cache/logwatch doesn't exist. Should I just arbitrarily make
one? Is it an install error? I've just installed the system, U18.04, up
to date.

Ideas welcome.

d



--
In modern fantasy (literary or governmental), killing people is the
usual solution to the so-called war between good and evil. My books are
not conceived in terms of such a war, and offer no simple answers to
simplistic questions.

----- Ursula Le Guin

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: cron issue

Colin Law
On Tue, 28 Aug 2018 at 23:16, Dave Stevens <[hidden email]> wrote:

>
> I've set up a cron job to run logwatch at night.
>
> Output from command /usr/sbin/logwatch --mailto=....
>
> gives:
>
> /var/cache/logwatch No such file or directory at /usr/sbin/logwatch
> line 634.
>
> and line 634 is:
>
> opendir(TMPDIR, $Config{'tmpdir'}) or die "$Config{'tmpdir'} $!";
>
> I don't understand what file is missing. I can confirm
> that /var/cache/logwatch doesn't exist. Should I just arbitrarily make
> one? Is it an install error? I've just installed the system, U18.04, up
> to date.

Googling for
/var/cache/logwatch No such file or directory
finds a number of hits which might be relevant.

Colin

>
> Ideas welcome.
>
> d
>
>
>
> --
> In modern fantasy (literary or governmental), killing people is the
> usual solution to the so-called war between good and evil. My books are
> not conceived in terms of such a war, and offer no simple answers to
> simplistic questions.
>
> ----- Ursula Le Guin
>
> --
> ubuntu-users mailing list
> [hidden email]
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users