# Cronjob notice in Mautic log

**URL:** <https://forum.mautic.org/t/cronjob-notice-in-mautic-log/34762>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [January 15, 2025, 9:52pm UTC](https://forum.mautic.org/t/cronjob-notice-in-mautic-log/34762 "2025-01-15T21:52:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [January 15, 2025, 9:52pm UTC](https://forum.mautic.org/t/cronjob-notice-in-mautic-log/34762/1 "2025-01-15T21:52:01Z")

</div>

Hi everybody,

My Mautic version is: 4.4.12  
My PHP version is: 8.0.30

My problem is that I get a notice in my logs regarging my cronjobs:  
"mautic.NOTICE: Symfony\Component\Console\Exception\CommandNotFoundException: Command “mautic:segments:update " is not defined. Did you mean one of these?..”

I already tried to re-install the cronjob, but nothing is working. I see a space between mautic:segments:uipdate and the ". And when I look at my conjobs with the crontab -l command i see the following:

![afbeelding](https://us1.discourse-cdn.com/flex020/uploads/mautic/optimized/2X/9/9dd8bf26cb2eed5199f31730abb4abda19d32af9_2_690x65.png)

I don’t know where the “\r” comes from at the end of every cronjob? Can this have something to do with the notice? If so, how can I delete this \r? Because when I edit the cronjobs in the nano editor the \r is not showing.

Any help much appreciated!

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 16, 2025, 5:17am UTC](https://forum.mautic.org/t/cronjob-notice-in-mautic-log/34762/2 "2025-01-16T05:17:12Z")

</div>

/r is the ‘carriage return’ in windows. (in other words ENTER)  
There is something wrong with the tool you use to edit the crontab.  
J

---

<div class="post-metadata">

**Author:** ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)\
**Post date:** [January 16, 2025, 8:51am UTC](https://forum.mautic.org/t/cronjob-notice-in-mautic-log/34762/3 "2025-01-16T08:51:09Z")

</div>

Joey is partially right: You used a Windows specific app to modify/update your crontab. And Windows isn’t really compatible with \*nix systems.

But…  
The error reported sounds more like your crontab see a blank like a End of Line.

So…  
In addition of removing those /r, I would suggest you to put your cmd in quotes like so:  
`* * * * * php "/var/www/html/bin/console mautic:segment:update"`

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [January 16, 2025, 9:05am UTC](https://forum.mautic.org/t/cronjob-notice-in-mautic-log/34762/4 "2025-01-16T09:05:52Z")

</div>

I used a Macbook and edited the file in the Atom app before I copied the cronjons to the terminal.

---

<div class="post-metadata">

**Author:** ![klaasvna](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/klaasvna/32/957_2.png) [@klaasvna](https://forum.mautic.org/u/klaasvna)\
**Post date:** [January 16, 2025, 9:11am UTC](https://forum.mautic.org/t/cronjob-notice-in-mautic-log/34762/5 "2025-01-16T09:11:02Z")

</div>

adding the " " seems to do the trick!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/1X/43c63600fe51440378769136903f1fa2a9a34102.png) [@system](https://forum.mautic.org/u/system)\
**Post date:** [January 17, 2025, 9:11pm UTC](https://forum.mautic.org/t/cronjob-notice-in-mautic-log/34762/6 "2025-01-17T21:11:24Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
