How can we monitor cron tasks

I am trying to get some contact to be moved to segments using cron task but it seems it doesn’t work.

I use this : php-cli /home6/username/public_html/mautic/app/console mautic:segments:update --env=prod > /dev/null

but it doesn’t seems to move the contact to the segmant.

How can I check if the cron task is running the task properly ?

We are on shared server bluehost.

I am trying to get some contact to be moved to segments using cron task but it seems it doesn’t work.
I use this : php-cli /home6/username/public_html/mautic/app/console mautic:segments:update --env=prod > /dev/null
but it doesn’t seems to move the contact to the segmant.
How can I check if the cron task is running the task properly ?
We are on shared server bluehost.

Why not write your output to a file rather than to dev/null and see what the output of your job is?

If you are getting error states in there you may need to write both stdout and stderr to a file. Examples of how to do this are here

Maybe you can use a webcron service called easycron.com to trigger the script to run, it very easy to set up and supports multiple configurations.

On Ubuntu I send my crond output to /tmp, so my cron command looks like this:

sudo -u www-data /usr/bin/php /var/www/html/app/console mautic:social:monitoring 2>&1 >> /tmp/mautic.social.monitoring.txt