On Jan 5, 2012, at 02:30 , CC Chen wrote:

> Hi all,
>=20
> I used crontab command such as
> "*/5 * * * * /usr/local/bin/ruby /local/myuser/rubyscript/script1.rb"
>=20
> But it can't execute script1.rb, I let it print some message every 5
> min.
>=20
> I also changed script1.rb to chmod 755.
>=20
>=20
> 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.