Im running getmail from cron. How do I temporarily stop it?
Some people ask about temporarily stopping getmail from running from a cron job, possibly because the mail server is down and they don’t want to see the warnings cron mails them. The easiest method is to comment out getmail from your crontab file: • Run $ crontab -e to edit your crontab file. • Place a # (pound) character at the start of the line containing the call to getmail. • Save the changed file. When you want to re-enable getmail, edit the file again and un-do the above change. If you need to do this on a regular basis, you can instead use a “flag file” to tell the system whether or not to run getmail: Change your cron job or shellscript that normally launches getmail to check for the presence of a certain file first, and have it not run getmail if that file is present.