Marco Slaviero on Thu, 1 Feb 2001 00:55:58 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: GLUG: Sendmail PID's


Today Charl Pretorius wrote:

> Hi all,
> 
> Ok this is the setup.  I got a mashine that is not permenantly connected 
> to the internet.  Everything is working ie. the mail is queued and 
> fetchmail fetches. Mail also stays in que until its flushed manually.
> 
> Ok here the fun starts. The script that I wrote checks for the 
> connection by checking that /var/run/ppp0.pid exists. This works fine 
> coz fetchmail does not fetch until there is an established connection. 
> Same goes for fetchmail, the script will wait until its finished 
> (/var/run/fetchmail.pid).
> 
> Now I have to flush the sendmail que. But oops there is already a 
> /var/run/sendmail.pid before it starts even .... from the deamon that 
> has to run for users to be able to send mail while the mashine is not 
> connected.
> 
> So the question is: How will I establish when sendmail is finished 
> flushing the que, sothat I can shut the connection down?
> 
> Please any suggestions?
> 
> Regards,
> Charl
> 
> ---
> To unsubscribe from this list: send the line "unsubscribe glug" in
> the body of a message to majordomo@xxxxxxxxxxxxx If you have a
> problem unsubscribing, please mail owner-glug@xxxxxxxxxxxx
> 
sendmail -q will process the queue once and then return, so simply have

OTHERCODE
sendmail -q
/etc/ppp/ppp-off


Regards
Marco Slaviero

"Ruthless logic is the sign of a limited mind" -- Doc