Re: Problem with crontab and script/runner

Wang Pengcheng
Wed, 22 Apr 2009 06:36:30 -0000

Sometimes you should test the file which is executed or not.
So I suggest you can write some code in the script to show whether it
work or not, such as
`date >> ~/test.txt`
After testing it ,you can permit the situation.

On Apr 21, 5:12 pm, Jose vicente Ribera pellicer <rails-mailing-
l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:
> Brandon Olivares wrote:
> > Hi,
>
> > Ruby isn''t in /usr/local/bin/ruby. Run `which ruby''
to see where it is.
>
> > You shouldn''t need to have that path to ruby though before
calling
> > script/runner, because it looks like it already has a shebang line.
>
> > Brandon
>
> Hi, ruby is in /usr/bin/ruby  :(
>
> Now this is my line in crontab:
>
> */1 * * * * /usr/bin/ruby /Users/jose/mimandote.com/script/runner
> ''Usuario.usuario_del_dia''
>
> The problem is that since i change /usr/local/bin/ruby to /usr/bin/ruby
> i don''t recive any mail. This would say thet it runs good? (i say
it
> because my application doesm''t work and i don''t know if
is by cron or by
> the programation of the model method).
> --
> Posted viahttp://www.ruby-forum.com/.