Do I need to tell crontab to use bash instead of sh? reddit / freebsd ---------------------------------------------------------------------- [deleted] · 2020-08-07 02:46 [deleted] ---------------------------------------------------------------------- dddddavidddd · 2020-08-07 03:17 It would be easier to add a shebang at the top of your `.sh` file to specify the interpreter, i.e. make the first line of the file `#!/usr/local/bin/bash` (assuming that is the path to `bash`) ---------------------------------------------------------------------- edthesmokebeard · 2020-08-07 03:32 This. ALWAYS shebang. ---------------------------------------------------------------------- [deleted] · 2020-08-07 04:16 [deleted] ---------------------------------------------------------------------- unitrunker2 · 2020-08-07 18:27 This is the portable way to do it: `#!/usr/bin/env bash` ---------------------------------------------------------------------- edthesmokebeard · 2020-08-09 16:16 Is everything in your interactive shell path in the PATH variable in the script? Does some piece of your script call something NOT in PATH=/usr/local/bin:/etc:/bin:/sbin:/usr/bin:/usr/sbin ?