From: Ryan Davis Date: 2012-01-06T09:09:01+09:00 Subject: Re: crontab and ruby script On Jan 5, 2012, at 02:30 , CC Chen wrote: > 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? Run 'env -i $SHELL --norc'. It will bring up a new naked shell that is equivalent to what cron runs. Run your command as-is in this shell to ensure it works correctly.