<p>How can I set up my crontab to execute X script at 11:59PM every day without emailing me or creating any logs?</p>

<p>Right now my crontab looks something like this</p>

<pre><code>@daily /path/to/script.sh
</code></pre>

[{'answer_id': 3139, 'author': 'Michael Stum', 'author_id': 91, 'author_profile': 'https://Stackoverflow.com/users/91', 'pm_score': 4, 'selected': True, 'text': '<p>When you do crontab -e, try this:</p>\n\n<pre><code>59 23 * * * /usr/sbin/myscript &gt; /dev/null\n</code></pre>\n\n<p>That means: At 59 Minutes and 23 Hours on every day (*) on every month on every weekday, execute myscript.</p>\n\n<p>See <strong>man crontab</strong> for some more info and examples.</p>\n'}, {'answer_id': 3145, 'author': 'svrist', 'author_id': 86, 'author_profile': 'https://Stackoverflow.com/users/86', 'pm_score': 3, 'selected': False, 'text': '<p>You will with the above response receive email with any text written to stderr. Some people redirect that away too, and make sure that the script writes a log instead.</p>\n\n<pre><code>... 2&gt;&amp;1 ....\n</code></pre>\n'}, {'answer_id': 7080, 'author': 'Dominic Cooney', 'author_id': 878, 'author_profile': 'https://Stackoverflow.com/users/878', 'pm_score': 3, 'selected': False, 'text': '<p>Following up on <a href="https://stackoverflow.com/questions/3136/help-with-cronjobs#3145">svrist\'s answer,</a> depending on your shell, the 2>&amp;1 should go <em>after</em> > /dev/null or you will still see the output from stderr.</p>\n\n<p>The following will silence both stdout and stderr:</p>\n\n<pre><code>59 23 * * * /usr/sbin/myscript &gt; /dev/null 2&gt;&amp;1\n</code></pre>\n\n<p>The following silences stdout, but stderr will still appear (via stdout):</p>\n\n<pre><code>59 23 * * * /usr/sbin/myscript 2&gt;&amp;1 &gt; /dev/null\n</code></pre>\n\n<p><a href="http://tldp.org/LDP/abs/html/io-redirection.html" rel="nofollow noreferrer">The Advanced Bash Scripting Guide\'s chapter on IO redirection</a> is a good reference--search for 2>&amp;1 to see a couple of examples.</p>\n'}]
['https://Stackoverflow.com/questions/3136', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/87/']