fajryassin

Member
Oct 5, 2014
11
0
128
Beirut, Lebanon, Lebanon
cPanel Access Level
Root Administrator
Twitter
Hello
I have this result

[root@server ~]# exim -bp
66h 119K 1oAkRf-0001Hl-Oi <n0184074e5d-f1d9265419f946e4-social===[email protected]>
[email protected]

58h 12K 1oAsds-00041v-Dm <>
[email protected]

57h 12K 1oAsph-00055j-2D <>
[email protected]

48h 107K 1oB1D9-00073T-AP <n018413785e-19c8c083419b4895-social===[email protected]>
[email protected]

14h 4.6K 1oBX89-0004ZJ-6p <>
[email protected]

14h 4.6K 1oBX8A-0004ZW-54 <>
[email protected]

42m 108K 1oBjxF-0005FH-Pc <n018614c2c7-ced8801d97204313-social===[email protected]>
[email protected]

0m 717 1oBkcX-0008Cm-6N <[email protected]>
[email protected]
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
Thanks for that. Can you try calling the full path to exim by changing the cron command to this?

Code:
 Cron <root@server> /usr/sbin/exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash > /dev/null 2>&1
to see if that works better for you?
 

fajryassin

Member
Oct 5, 2014
11
0
128
Beirut, Lebanon, Lebanon
cPanel Access Level
Root Administrator
Twitter
it is good now, I think
and I wanna waiting now

[root@server ~]# Cron <root@server> /usr/sbin/exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash > /dev/null 2>&1
-bash: root@server: No such file or directory
[root@server ~]# /usr/sbin/exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash > /dev/null 2>&1
[root@server ~]#
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,505
2,605
363
cPanel Access Level
Root Administrator
I would expect either option, with or without the full path, to work on the command line as the user. However, when running as a cron job, cron doesn't have the same PATH variable as root or users, so specifying the full path is always the safest bet.
 
  • Like
Reactions: fajryassin