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