Have you tried giving the full path to Ruby? /usr/local/bin/ruby or
whatever it is on your machine?



On 4 September 2013 14:41, Paul Darragh <lists / ruby-forum.com> wrote:

> I have a ruby script that I am trying to set up on a cronjob. I have
> tested it both just running it in the normal mode and a test shell mode.
>
> When I am logged in as a normal user or in 'env -i $SHELL --norc' I will
> run ruby /home/salinn/dev/ruby/webmail/script.rb  and it works in both
> environments. Could someone help point me out what I am doing wrong?
>
> My crontab looks like this:
>
> * * * * * ruby /home/salinn/dev/ruby/webmail/script.rb
>
> --
> Posted via http://www.ruby-forum.com/.
>