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...@andreas-s.net> 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/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to