• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Cron test -x /usr/sbin/anacron || ( cd / && run-parts --report

HeineK

New Pleskian
Hello Parallels,

I've been searching the forums for a fix to this issue, but all i've found so far is kind of a "quickfix" to stop my issue from occurring.
I'm not that happy about applying any kind of quickfix to my server to stop this from happening, so i am now asking to discover if there is any other kind of fixes to this.

About daily, i receive a e-mail from the Plesk server, about a Cron job that just have been executed.
Subject: Cron <********> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Is there any way to stop these e-mails from being sent to me?

Information about server
Version: Parallels Plesk Panel v11.5.30_build115130819.13 os_Debian 7.0
OS: Debian 7.3
 
Last edited:
Check that this command exists in your /etc/crontab
To disable mail notification, you may have to append "&> /dev/null" at the end of the above listed cron job in the file /etc/crontab.
 
So applying:
&> /dev/null

In the end of crontab - it wont break anything or stop Cronjobs from executing? - Basicly what i am asking, it will only affect the e-mail part?

My crontab should look like this then:
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
&> /dev/null
 
No, it should be

25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily &> /dev/null )
 
All right, added the "&> /dev/null" to 3 anacron cronjobs.
To understand what happens, it stops e-mails from being sent - and it doesn't break other cronjobs from executing?
For example, if i add a cronjob to a customer using the plesk interface, it will still execute?
 
This cronjob script will be executed correctly but output will be sent to /dev/null instead of email.
 
My crontab: 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily &> /dev/null )

I still get up every morning this mail.

Subjekt: Cron <*********> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

Message: /etc/cron.daily/logrotate:
Reopen NGINX log files: .

What am I doing wrong?
 
Got this mail today morning the first time:
ron root@XXX test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
run-parts: /etc/cron.daily/pleskupdate exited with return code 1
Could not log into Plesk no more.
Have to restart the whole Server to get into Plask Panel again!
 
Back
Top