Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Im running getmail from cron. How do I temporarily stop it?

0
Posted

Im running getmail from cron. How do I temporarily stop it?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.