The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

killeximq (Kill Exim Queue)

Discussion in 'General Discussion' started by maxihost2, Apr 2, 2006.

  1. maxihost2

    maxihost2 Well-Known Member
    PartnerNOC

    Joined:
    Feb 28, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Is it possible to kill exim queue through shell ?
    What is the command line ?
     
  2. maverick23

    maverick23 Well-Known Member

    Joined:
    Feb 23, 2005
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    try /usr/sbin/exim -bp |awk '{print $3}' | xargs -n 1 -P 80 /usr/sbin/exim -v -M
    this will force your queue....

    or try doing :- (remove all your queue)

    make a script :-

    fname=`/usr/sbin/exim -bp |grep \$1|awk {'print $3'}`
    for i in $fname
    do
    /usr/sbin/exim -Mrm $i >>/dev/null
    echo $i
    done

    and then say sh script name '<'

    this will remove all ur queue
     
  3. maxihost2

    maxihost2 Well-Known Member
    PartnerNOC

    Joined:
    Feb 28, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Thank you very much, worked perfectly
     
  4. codegirl42

    codegirl42 Well-Known Member

    Joined:
    Mar 9, 2006
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Curious to know what this would be used for...
     

Share This Page