[nzlug] cron
Nevyn
nevynh at gmail.com
Mon Jun 9 09:27:08 NZST 2008
On Mon, Jun 9, 2008 at 9:23 AM, Cliff Pratt <enkidu at cliffp.com> wrote:
> Nevyn wrote:
>>
>> On Sun, Jun 8, 2008 at 9:34 AM, Brendan Murray <xasperated at gmail.com>
>> wrote:
>>>
>>> This one doesn't work ----- # a cron script that doesn't work echo
>>> "ping" >> /tmp/logfile ------
>>>
>>> This one does ------------- #! /bin/sh # a cron script that does
>>> work echo "ping" >> /tmp/logfile
>>
>> Just figured it out. Turns out crontab appears to write an error log of
>> your own tasks in your home directory under the name
>> "dead.letter". So in my case, sudo -i got me into root's directory
>> and having a look there "showed me the way...."
>>
> *cron* does that? Are you sure? Sounds more like whatever MTA you are
> running would do that.
>
> Cheers,
>
> Cliff
Right you are. Does anyone know how to enable cron to output a log file?
More information about the NZLUG
mailing list