Where is logged cron activity?
Robert Moskowitz
rgm at htt-consult.com
Thu May 29 23:51:02 UTC 2025
I looked at man rsync enough times to figure out how to log its output.
with no success.
So I asked Dr. Google:
--log-file=my.log
sigh. I told you my search foo is weak. I blame my dyslexia...
So I don't THIS time need piping.
On 5/29/25 7:44 PM, Robert Moskowitz via ubuntu-users 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...
>
>
>
More information about the ubuntu-users
mailing list