On Friday 25 January 2002 11:41 am, Dr . Sharukh K . R . Pavri . wrote:
> What I want to know is how can I automate that sendmail -q should only
> *after* fetchmail has done ?

One thing you can do is, have in your ip-up.local (assuming your POP
server is pop.myisp.com, as is entered in your .fetchmailrc):

if fetchmail -c pop.myisp.com ; then
   fetchmail -v -d 300 # No need for &, since -d goes into backgroud 
                                  # automatically
fi
sendmail -q

The first fetchmail will just check if there are mails on the server. If 
there are any, the second is run in the background, and in any case,
sendmail -q is started. Checking for mail is quite fast - fetchmail needs
to issue just a STAT command to the POP server.

Binand

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to