문제

Say I create a cron job that runs a Zsh or Bash script as /path/to/shell_script.sh

Would such a shell be a non-interactive non-login shell? If so, what shell init files would be executed (for Bash & Zsh)?

도움이 되었습니까?

해결책

zsh sources .zshenv (source).

bash sources $BASH_ENV if set. (source)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top