Cron Dameon emails -ambiguous redirect

rudtek

Member
Jul 19, 2017
24
2
3
Oregon
cPanel Access Level
Root Administrator
I keep getting emails from my server from "cron Daemon" with the subject:

Cron <[email protected]> /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&[email protected] /usr/local/cpanel/bin/onboot_handler

The only content of the email is:

/bin/bash: [email protected]: ambiguous redirect

I can't figure out what's doing this. I tried this command:

file /var/spool/cron/root

which returned ASCII text

These are my server settings:
I have centos 6.9 (final)
cpanel 11.64.0.33
entype:kvm
Cpanel=release
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

Could you run the commands below and let us know the output?

Code:
cat /var/spool/cron/root
crontab -l
Thank you.
 

rudtek

Member
Jul 19, 2017
24
2
3
Oregon
cPanel Access Level
Root Administrator
Code:
SHELL="/bin/bash"
13 13 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1

SHELL="/bin/bash"
7 12 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1

SHELL="/bin/bash"

SHELL="/bin/bash"

SHELL="/bin/bash"
#8 5 * * 3 /usr/local/cpanel/scripts/upcp --cron
8 5 * * * /etc/upcp_control

SHELL="/bin/bash"
13 10 * * * /usr/local/cpanel/scripts/cpbackup

SHELL="/bin/bash"
40 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check

SHELL="/bin/bash"
52 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache

SHELL="/bin/bash"
25 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache

SHELL="/bin/bash"

SHELL="/bin/bash"
25 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1

SHELL="/bin/bash"
23 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1

SHELL="/bin/bash"
7 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1

SHELL="/bin/bash"
*/5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1

SHELL="/bin/bash"
11 20 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify

SHELL="/bin/bash"
23,38,53,8 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&[email protected] /usr/local/cpanel/bin/onboot_handler
0 2 * * * /usr/local/cpanel/bin/backup
09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1

Code:
SHELL="/bin/bash"
13 13 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1

SHELL="/bin/bash"
7 12 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1

SHELL="/bin/bash"

SHELL="/bin/bash"

SHELL="/bin/bash"
#8 5 * * 3 /usr/local/cpanel/scripts/upcp --cron
8 5 * * * /etc/upcp_control

SHELL="/bin/bash"
13 10 * * * /usr/local/cpanel/scripts/cpbackup

SHELL="/bin/bash"
40 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpane              l/bin/tail-check

SHELL="/bin/bash"
52 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache &&               /usr/local/cpanel/scripts/update_mailman_cache

SHELL="/bin/bash"
25 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/              local/cpanel/scripts/update_db_cache

SHELL="/bin/bash"

SHELL="/bin/bash"
25 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1

SHELL="/bin/bash"
23 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1

SHELL="/bin/bash"
7 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1

SHELL="/bin/bash"
*/5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1

SHELL="/bin/bash"
11 20 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify

SHELL="/bin/bash"
23,38,53,8 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&[email protected]              ot /usr/local/cpanel/bin/onboot_handler
0 2 * * * /usr/local/cpanel/bin/backup
09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,229
463
Hello,

It looks like your root crontab file isn't formatted correctly. You can edit this cron job with the following command:

Code:
crontab -e
Here's an example of how it should look:

Code:
0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
19 4 * * * /usr/local/cpanel/scripts/upcp --cron
0 1 * * * /usr/local/cpanel/scripts/cpbackup
0 2 * * * /usr/local/cpanel/bin/backup
35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache
30 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
15 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
*/5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1
2 0 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
1,16,31,46 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1
12 5 * * * /usr/local/cpanel/bin/sqloptimizer >/dev/null 2>&1
Thank you.