Shell script not running via crontab, but runs fine manually

前端 未结 8 641
清歌不尽
清歌不尽 2020-12-17 01:25

I have a script that checks if pptp vpn is running , and if not it reconnect the pptp vpn , when i run the script manually it execute fine , when i do set a cron job , is no

8条回答
  •  孤城傲影
    2020-12-17 01:32

    In my case, the issue was that the script wasn't marked as executable. To make sure it is, run the following command:

    chmod +x your_script.sh

提交回复
热议问题