Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2006 23:29:23 -0700
From:      perikillo <perikillo@gmail.com>
To:        "FreeBSD Mailing List" <freebsd-questions@freebsd.org>
Subject:   Re: User crontab file dosent run...?
Message-ID:  <51d7a5160607172329n4e5919b7ua15dbc091dfa4c58@mail.gmail.com>
In-Reply-To: <20060717175332.GB81811@dan.emsphone.com>
References:  <51d7a5160607171017v148af14v2c838ca5bd129b87@mail.gmail.com> <20060717175332.GB81811@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/17/06, Dan Nelson <dnelson@allantgroup.com> wrote:
> In the last episode (Jul 17), perikillo said:
> > Hi people.
> >
> >  Im testing how to run scripts from cron using the crontab program,
> > the handbook say tha each user need to have a crontab file if they
> > want to run some process with the cron program:
> >
> > user-x$ crontab -e
> >
> > SHELL=/bin/sh
> > PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
> > MAILTO=root
> > */1     *       *       *       *       user-x         /bin/echo "Testing"
>
> User crontabs don't have a "username" column.  Remove "user-x" from the
> above line and it should work.
>
> You should still have gotten an error message emailed to root,
> something like "user-x: not found".  Maybe looking at /var/log/cron
> will help.
>
> --
>         Dan Nelson
>         dnelson@allantgroup.com
>

Yeaa guys thanks for your help, my job is working now just need to
figure out why is not sending the email to the root account...?

Thanks :-).



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?51d7a5160607172329n4e5919b7ua15dbc091dfa4c58>