I'm experiencing some issues trying to call a bash script as a
cronjob which just won't run.
Here's for eliminating some possible sources of failure:
- I edited the cron via
sudo crontab -e
- The script is supposed to run every night at 4am so the command is
0 4 * * * bash ~/nightly_backup.sh
- The script is located in
- The script runs completely on its own and has no need for any user input
- Calling it manually via
sudo bash ~/nightly_backup.shworks just fine
- There's another command in the crontab which is scheduled to run every 5 minutes and works fine as well (
fswebcam -r ...)
What am I doing wrong?
In addition: looking up today if the script has run I see the syslog which says the following:
Feb 7 04:00:01 localhost CRON: (root) CMD (bash ~/nightly_backup.sh) Feb 7 04:00:01 localhost CRON: (CRON) info (No MTA installed, discarding output) Feb 7 04:00:03 localhost CRON: (CRON) info (No MTA installed, discarding output)
- What does "no MTA installed, discarding output" mean?