I want to run a script on startup that establishes a GRE tunnel.
The script works fine if I just run /root/tunnel.sh
after rebooting, it runs and establishes the tunnel.
Below are the contents of my crontab -e for root user on my machine.
@reboot sleep 15; /root/tunnel.sh
Am I missing something?
I'm running CentOS 7 if that helps.
/root/tunnel.sh: line 2: ip: command not found
Does this just mean I'm not waiting it long enough or what? Since the commands work fine if I execute the script from the bash terminal or if I paste all the commands from it one by one – Tundral Mar 22 '18 at 19:11