I have a zsh script that I would like to run via anacron every week.
It runs fine from an interactive bash shell, but when run by anacron, I am getting command not found errors and it looks like it is ignoring the shebang line.
The actual /etc/cron.weekly/ script is:
#!/bin/sh
[ -x SCRIPT ] || exit 1
su NORMAL_USER SCRIPT
And the top line of the actual script is #!/bin/zsh
How can I get anacron to honor the shebang? Would changing NORMAL_USER's login shell to zsh accomplish this?