• 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

Resolved Scheduled Task not work

- an existing file .emailpass with content is overritten with an empty file
- if have changed to /usr/local/psa/admin/bin/mail_auth_view 2>&1 > /var/www/vhosts/kdb/stfg/.emailpass, but no success
- no errors in logs
- in syslog: CRON[20080]: (root) CMD (/usr/local/psa/admin/bin/mail_auth_view 2>&1 > /var/www/vhosts/kdb/stfg/.emailpass > /dev/null)

How is the correct syntax?
 
The problem is > /dev/null at the end and that you do not see this in Command!
In /var/spool/cron/crontabs/root it can seen.
I delete here > /dev/null at the end: /usr/local/psa/admin/bin/mail_auth_view 2>&1 > /var/www/vhosts/kdb/stfg/.emailpass

Now it works!
 
Back
Top