Hi!

Is there an equivalent of "sendmail -q" in qmail? I wrote the
following script for sending a SIGALRM to qmail-send. But it keeps
doing it in the background. Can it be modified in a way to run in the
foreground? That way I can use it in CRON scripts to send all mails at
regular intervals.

TIA,
 Sandip


>#!/bin/bash
>
>PID=`ps ax | grep qmail-send | grep -v grep | tr -s ' ' | cut -d ' ' -f 2 ` 
>/var/qmail/bin/qmail-tcpok
>echo "Sending SIGALRM to qmail-send($PID)"
>kill -ALRM $PID

-- 
-------------------------------------
Sandip Bhattacharya 
sandipb @ bigfoot.com
-------------------------------------

----------------------------------------------
LIH is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.

Reply via email to