You could also try using [whenever](http://github.com/javan/whenever)

On Thu, Jan 5, 2012 at 10:34 AM, Giampiero Zanchi <cidza / tin.it> wrote:
> I am quite noob
> however...
> if your script does use gui, maybe you must use
> DISPLAY=:0.0
> */5 * * * * /usr/local/bin/ruby /local/myuser/rubyscript/script1.rb
>
> a useful link may be
> http://www.unix.com/answers-frequently-asked-questions/13527-cron-crontab.html
>
> CC Chen wrote in post #1039530:
>> Hi all,
>>
>> I used crontab command such as
>> "*/5 * * * * /usr/local/bin/ruby /local/myuser/rubyscript/script1.rb"
>>
>> But it can't execute script1.rb, I let it print some message every 5
>> min.
>>
>> I also changed script1.rb to chmod 755.
>>
>>
>> Does the crontab command is right?
>>
>>
>>
>> Thanks.
>
> --
> Posted via http://www.ruby-forum.com/.
>