• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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