2011-09-14

Setting shell in crontab

I didn't know until now, that you can set a shell in crontab, ignoring whatever shell is set for the crontab's user.
SHELL=/bin/bash
This can be useful, if you have to rely on a certain shell or environment for whatever reason.

No comments:

Post a Comment