mac cron不能正确使用shell

我已经设置了cron来运行一个简单的hello世界shell脚本,但它给了我一个错误,Google不帮我解决。 我必须错过一些非常简单的事情!

这是我的crontab:

[email protected] SHELL=/bin/bash 30 * * * * * $HOME/hello.sh 

这里是hello.sh:

 #!/bin/bash echo HELLO WORLD! 

我收到这个错误邮件:

 /bin/bash: 555: command not found 

我曾尝试将shell设置为/bin/sh但没有任何区别。 我仍然收到类似的错误信息。

cron需要5个时间参数。 你已经给出了6( 30加5 * ),所以它使用第六个来获得命令名称。