cron作业是否运行非交互式非登录shell?

时间:2014-05-09 18:49:17

标签: shell cron init

假设我创建了一个运行Zsh或Bash脚本的cron作业/path/to/shell_script.sh

这样的shell会是non-interactive non-login shell吗?如果是,那么将执行哪些shell init文件(对于Bash和Zsh)?

1 个答案:

答案 0 :(得分:1)

zsh来源.zshenvsource)。

如果设置了

bash来源$BASH_ENV。 (source