Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is there any magic to use ZSH in cron scripts ?



Helmut Jarausch wrote:
>any script executed by cron is executed by the Bourne shell (on my machine,
>I don't try to replace /bin/sh by zsh)
>
>Is there any trick to use zsh?

Put your entire cron job in a script that starts "#!/usr/local/bin/zsh"
(or wherever you put it), and then have the actual crontab entry just
exec that script.

-zefram



Messages sorted by: Reverse Date, Date, Thread, Author