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
Was having a similar problem that was resolved when a sh was put before the command in crontab
sh
crontab
This did not work :
@reboot ~myhome/mycommand >/tmp/logfile 2>&1
This did :
@reboot sh ~myhome/mycommand >/tmp/logfile 2>&1