我的cron:基本shell脚本帮助。/bin/sh的:来源:找不到
45 10 * * * source /home/ThinkCode/Test/hello.sh
hello.sh:
#!/bin/bash
echo "helloworld"
错误是我的电子邮件:
我在做什么错?它是配置/环境特定的,所以谷歌搜索没有多大帮助!谢谢..
我的cron:基本shell脚本帮助。/bin/sh的:来源:找不到
45 10 * * * source /home/ThinkCode/Test/hello.sh
hello.sh:
#!/bin/bash
echo "helloworld"
错误是我的电子邮件:
我在做什么错?它是配置/环境特定的,所以谷歌搜索没有多大帮助!谢谢..
实际sh
没有source
,只有.
。将cron中的shell更改为bash
,或使用.
代替。
你可以这样做:'SHELL =/bin/bash' – 2013-12-09 19:44:52