I would like cron
to run a script from a specific shell (Zsh). I thought the following would work:
00 02 * * * exec zsh; /path/to/script.sh
but apparently it doesn't, why?
This also made me wonder, how do I find out what shell and init scripts does cron
run first prior to running the entry in crontab?
script.sh
a zsh script or do you want zsh to launch ansh
script? What's theexec
supposed to do? – terdon Apr 27 '14 at 21:24