帮助与基本的shell脚本。 / bin / sh的:源:未找到 [英] Help with basic shell script. /bin/sh: source: not found
本文介绍了帮助与基本的shell脚本。 / bin / sh的:源:未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的cron:
45 10 * * * source /home/ThinkCode/Test/hello.sh
hello.sh:
hello.sh :
#!/bin/bash
echo "helloworld"
该错误是我的电子邮件:
The error it emails me :
/bin/sh: source: not found
我是什么做错了吗?它是配置/环境的具体,因此谷歌搜索没有太大的帮助!谢谢..
What am I doing wrong? It is configuration/environment specific, so Googling didn't help much! Thanks..
推荐答案
真正的 SH
没有源
只有。
。要么改变cron中的壳庆典
,或使用。
代替。
Real sh
doesn't have source
, only .
. Either change the shell in cron to bash
, or use .
instead.
这篇关于帮助与基本的shell脚本。 / bin / sh的:源:未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文