|
Lines 5246-5258
Link Here
|
| 5246 |
which &man.crontab.1; updates (the &man.crontab.5; manual |
5246 |
which &man.crontab.1; updates (the &man.crontab.5; manual |
| 5247 |
page explains the differences in more detail).</para> |
5247 |
page explains the differences in more detail).</para> |
| 5248 |
|
5248 |
|
| 5249 |
<para>If this is what you did, you should delete the |
5249 |
<para>If this is what you did, the extra crontab is simply a |
| 5250 |
<filename>/var/cron/tabs/root</filename>, since it will |
5250 |
copy of <filename>/etc/crontab</filename> in the wrong |
| 5251 |
simply be a copy of <filename>/etc/crontab</filename>, |
5251 |
format it. Delete it with the command:</para> |
| 5252 |
in the wrong format. Next time, when you edit |
5252 |
|
| 5253 |
<filename>/etc/crontab</filename>, you should not do |
5253 |
<screen>&prompt.root; <userintput>crontab <option>-r</option></userinput></screen> |
| 5254 |
anything to inform &man.cron.8; of the changes, since it |
5254 |
|
| 5255 |
will notice them automatically.</para> |
5255 |
<para>Next time, when you edit |
|
|
5256 |
<filename>/etc/crontab</filename>, you should not do |
| 5257 |
anything to inform &man.cron.8; of the changes, since it |
| 5258 |
will notice them automatically.</para> |
| 5259 |
|
| 5260 |
<para>If you want something to be run once per day, week, or |
| 5261 |
month, it's probably better to add shell scripts |
| 5262 |
<filename>/usr/local/etc/periodic</filename>, and let the |
| 5263 |
&man.periodic.8; command run from the system cron schedule |
| 5264 |
it with the other periodic system tasks.</para> |
| 5256 |
|
5265 |
|
| 5257 |
<para>The actual reason for the error is that the system |
5266 |
<para>The actual reason for the error is that the system |
| 5258 |
crontab has an extra field, specifying which user to run the |
5267 |
crontab has an extra field, specifying which user to run the |