SHELL="/bin/bash" although I'm not sure if that would work since I think it should already be using your default shell to execute the cron tasks. If that doesn't work, though, try changing the cron line to this:0 * * * * /bin/bash -c '[ `/bin/hostname` == "myserver" ] && /usr/local/bin/mytask' which will cause bash to execute the command specified as the argument to -c. Alternatively, you could create a wrapper script, something like#!/bin/bash
[ `/bin/hostname` == "myserver" ] && /usr/local/bin/mytask and put the path to that file in your crontab.