Skip to main content

Cron Daemon

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! If you manually run "exim -bp" from the command line, do you receive any output from the mail queue? Can you also confirm that /usr/sbin/exim exists on your machine?
    0
  • fajryassin
    Hello I have this result [QUOTE] [root@server ~]# exim -bp 66h 119K 1oAkRf-0001Hl-Oi social@depositorsunion.com 58h 12K 1oAsds-00041v-Dm <> sales15@percussion-massager.xyz 57h 12K 1oAsph-00055j-2D <> sales12@percussion-massager.xyz 48h 107K 1oB1D9-00073T-AP social@depositorsunion.com 14h 4.6K 1oBX89-0004ZJ-6p <> Sales.79@machine-top.com 14h 4.6K 1oBX8A-0004ZW-54 <> Sales.80@machine-top.com 42m 108K 1oBjxF-0005FH-Pc social@depositorsunion.com 0m 717 1oBkcX-0008Cm-6N root@server.supportbeirut.com
    0
  • cPRex Jurassic Moderator
    Thanks for that. Can you try calling the full path to exim by changing the cron command to this? Cron /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?
    0
  • fajryassin
    it is good now, I think and I wanna waiting now [QUOTE] [root@server ~]# Cron /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 ~]#
    0
  • cPRex Jurassic Moderator
    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.
    0

Please sign in to leave a comment.