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

[Sheflug] Re: Mail Check Script



I don't know about the #!/bin/hash bit, but I know it worked when run
directly from the command line.

I didn't have time to hang around to see if it worked from CRON, but I
couldn't see it not doing at the time.

Finally, when something is run from cron, anything echo'd to the console
instead goes into the syslog in a properly formatted comment. Lets you know
it's doing SOMETHING at least.

I have one script which does just about everything (send, fetch, proc, etc)
which runs every 5 minutes. Only sends/receives to/from external hosts if
ppp link is up. Works well.

Craig

On Fri, Feb 23, 2001 at 12:44:56PM -0000, Mark Broadbent wrote:
> To check every 15 minutes use the line
>
> 0,15,30,45 * * * root /usr/local/sbin/mailcheck

        */15 checks every 15 of whatever field you're using. If you
wanted to run the script every 3 minutes, you could have */3 (as I do
for my fetchmail script).

        At least in vixie cron. Dunno if others don't like this.
        José
--
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.


---------------------------------------------------------------------
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.