Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Using Cron to have auto-getmail' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using Cron to have auto-getmail
Authored by: Anonymous on Aug 11, '01 10:34:27PM

I'm trying to use cron to get getmail.py to run automatically every certain interval... has anyone managed to do this or perhaps another way to auto run it?

This is the crontab file I am using

SHELL=/bin/tcsh
PATH=/Users/sucrose/bin

* * * * * getmail.py>> /Users/sucrose/cronmessage 2>> /Users/sucrose/cronerrormessage

The idea is that it will run getmail.py which is ~/bin and write to a log based on what happens... only it doesn't...



[ Reply to This | # ]
Using Cron to have auto-getmail
Authored by: Anonymous on Sep 03, '01 03:11:27PM

I have my cron check for mail every
ten minutes:

1,11,21,31,41,51 * * * * /Users/phil/bin/getmail.py

The first asterisk field is minutes. Every 30 minutes
would be:

1,31 * * * * /Users/phil/bin/getmail.py



[ Reply to This | # ]
Using Cron to have auto-getmail
Authored by: sungwoo on Dec 01, '01 07:23:58PM

I've set the checking time as every minute, and it works.
The problem is, crontab send the log every minute to the system.log.
How can I avoid sending the log of the getmail activity only?
Thanks.



[ Reply to This | # ]