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

Re: [Sheflug] Mail Check Script



Richard,

> However, crontab is set to check mail every 15 minutes.
> 
> It looks as though either mailcheck isn't working or crontab isn't
> configured properly.
> 
> In /etc/crontab for the regular download of mail I have the
> following line....
> 
> 15 6-23 * * * root /usr/local/sbin/isdnctrl dial ippp0
> 
> this downloads mail and I don't have to touch anything.  The mailcheck
> line that Craig's put in is....
> 
> */15 * * * root /usr/local/sbin/mailcheck

To check every 15 minutes use the line

0,15,30,45 * * * root /usr/local/sbin/mailcheck

in your crontab file

I also noticed that the first line of your script reads:

#!/bin/hash

it should read

#!/bin/bash

(I believe there was an earlier post about this!)

Mark
-- 
Email:  coa97mgb [at] sheffield.ac.uk
Mobile: (07740) 707298
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.