From: Robert Klemme Date: 2012-01-09T19:00:01+09:00 Subject: Re: crontab and ruby script On Fri, Jan 6, 2012 at 3:20 AM, CC Chen wrote: > Ryan Davis wrote in post #1039638: >> On Jan 5, 2012, at 02:30 , CC Chen wrote: >> >>> 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. > > So I add this command 'env -i $SHELL --norc' on crontab directly? No. This was intended for testing only. Btw, you do not have those quotes at the beginning and end of the line in your crontab, do you? If yes, you must remove them. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/