WebFaction
Community site: login faq

Every 20 minutes, I'm getting a cron error email:

Cron <me@webXXX> ~/webapps/my_site/apache2/bin/start

Now I know that it makes good sense to have a start command in cron (to restart the app if it is down) but is there any way I can get rid of these emails without deleting the cron command?

Or should I just filter and delete the emails in my email client?

asked 01 Apr '13, 13:06

AnnaPS
10711020
accept rate: 100%


Add some output redirection to the end of the cron job, like this:

~/webapps/my_site/apache2/bin/start > /dev/null 2>&1

That way, nothing will be output by the cron job, so you won't receive any email for it.

Hope that helps!

permanent link

answered 01 Apr '13, 13:16

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×81
×50
×17

question asked: 01 Apr '13, 13:06

question was seen: 2,491 times

last updated: 01 Apr '13, 13:16

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM