• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Quick Cron Tab questions

I

INTEL

Guest
i have this setup in my cron manager

45 23 * * * wget -q -O /dev/null /var'/www/vhosts/domain.net/private/cron/cron_renewal.php'

does that look correct?

also, on top of that file, im including

#!/usr/local/psa/admin/bin/php

This is a very important cron job and i want it to definately run at 11:45 tonight.

Any input is greatly appreciated.
 
Hello,

I do not think that is correct.

I would run it like this:

45 23 * * * /usr/bin/php -q /var/www/vhosts/domain.net/private/cron/cron_renewal.php

eventually redirect to > /dev/null 2>&1
 
Originally posted by blank_page
Hello,

I do not think that is correct.

I would run it like this:

45 23 * * * /usr/bin/php -q /var/www/vhosts/domain.net/private/cron/cron_renewal.php

eventually redirect to > /dev/null 2>&1

Thank you for your reply. I changed it to:

45 23 * * * /usr/bin/php -q /var/www/vhosts/domain.net/private/cron/cron_renewal.php

How would I eventually redirect to > /dev/null 2>&1
 
Hello,


45 23 * * * /usr/bin/php -q /var/www/vhosts/domain.net/private/cron/cron_renewal.php >/dev/null 2>&1

would be the whole cronjob.
 
Originally posted by blank_page
Hello,


45 23 * * * /usr/bin/php -q /var/www/vhosts/domain.net/private/cron/cron_renewal.php >/dev/null 2>&1

would be the whole cronjob.

Excellent. Thank you!
 
Back
Top