[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Mail Check Script
On Fri, Feb 23, 2001 at 11:40:42AM +0000, Richard wrote:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> #!/bin/hash
>
> if test -f 'ls /var/spool/mqueue/* | head -n 1'
> then
> #Send connect to send mail
> echo "mailcheck: Sending pending mail from mqueue"
> /usr/sbin/isdnctrl dial ippp0
> fi
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I'm not too sure why this is wrong, but may I suggest to get rid
of the echo line? I can't quite remember whether cron will send any IO
directly to syslog or not. Try sending that to some file in /tmp.
Other than that, hash!=bash :-)
> */15 * * * root /usr/local/sbin/mailcheck
>
> as I say it looks as though this line isn't doing anything. Should I
> change the bit at the front which is "*/15" ? The rest of the line is
That is correct, check every 15'
--
José L Gómez Dans PhD student
Tel: +44 114 222 5582 Radar & Communications Group
FAX; +44 870 132 2990 Department of Electronic Engineering
University of Sheffield UK
---------------------------------------------------------------------
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.