Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Can you post the exact mysqldump command from the script, or at best the full script itself? Commented Aug 4, 2015 at 13:19
  • pls post the cron entry Commented Aug 4, 2015 at 13:27
  • 3
    You should probably remove sudo from the script: you are running it from root's crontab anyway, and sudo may not like running without a tty - see Why does cron silently fail to run sudo stuff in my script? Commented Aug 4, 2015 at 14:03
  • 1
    Revise cron file contents so that you record stdout+stderr "12 21 * * * /var/custom/maint_plan >/tmp/log.txt 2>&1". Also, would be good practice to add a #!/bin/bash to the start of your script. Commented Aug 4, 2015 at 20:24
  • 1
    There was surely an error message to tell you what is wrong. Error messages from cron jobs are sent over local email. Make sure that you have local email set up and that you read it. Commented Aug 4, 2015 at 23:05