From: eddie@... (Eddie Corns) Date: 2009-06-05T23:35:20+09:00 Subject: Re: Problem with cronjob and ruby script Matthew Lagace writes: >Hello, >I'm trying to get a ruby script run into a crontab and it keeps failing >saying it can't find my mechanize gem. When I run the script form the >command line, everything runs fine and I don't get any failures. Often and often when cron jobs fail it is because the environment variables are not set. Cron jobs do not automatically execute .bashrc (or equivalent) you generally need to create a script that calls your program after either setting the environment by hand or doing eg ". .bashrc". Eddie