Where is logged cron activity?
Robert Moskowitz
rgm at htt-consult.com
Fri May 30 00:08:43 UTC 2025
On 5/29/25 7:50 PM, bruce wrote:
> just lurking.. and forgi
>
> On Thu, May 29, 2025, 7:45 PM Robert Moskowitz via ubuntu-users
> <ubuntu-users at lists.ubuntu.com> wrote:
>
>
>
> On 5/29/25 7:29 PM, Ralf Mardorf via ubuntu-users wrote:
>> On Thu, 2025-05-29 at 18:06 -0400, Robert Moskowitz wrote:
>>> /var/log/cron
>>>
>>> Pointers please?
>> The following answer is probably still correct.
>>
>> "On a default installation cron jobs will be logged to
>>
>> /var/log/syslog
>>
>> You can see just cron jobs in that logfile by running
>>
>> grep CRON /var/log/syslog
>
> Seeing the log messages now.
>
>> edited Oct 3, 2023 at 0:39" -
>> https://askubuntu.com/questions/56683/where-is-the-cron-crontab-log
>
> It is an established fact that my search foo is weak...
>
> Anyway, I added the following to /etc/crontab to test out piping.
>
> 45 * * * * root cat /root/test.txt >> /root/backup-updates.log
>
> and /root/backup-updates.log is not getting updated. Both files
> exist. This should run every hour at :45
>
> And nothing in syslog about this activity.
>
> I want to run a rsync in crontab and capture its output to a log...
>
>
> hi..
> just lurking
> did u run ur test cmd by itself first to verify
> --user/permissions etc
>
> try doing same with something like "date" as well
Lots of testing. Finally did get >> to work. Then I saw I did not need
it. rsync has its own output to file...
And testing that worked. So I should be good for the real 4am rsync run.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20250529/678a8b40/attachment.html>
More information about the ubuntu-users
mailing list