Bash script runs manually, but fails on crontab

后端 未结 5 972
逝去的感伤
逝去的感伤 2020-12-06 01:14

I\'m a newbie to shell scripting. I have written a shell script to do incremental backup of MySQL database.The script is in executable format and runs successfully when exec

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 01:41

    1. In your crontab file your script entry can have

      * * * * * /bin/bash /path/to/your/script
      
    2. Make sure to use full paths in your script. I have had a look through it and I have not seen any but just in case I missed it.

提交回复
热议问题