Re: Problem with crontab and script/runner

Jose vicente Ribera pellicer
Tue, 21 Apr 2009 09:12:27 -0000

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).