How do I run a .sh file automatically?
Answer
Just add the execution command at the bottom of that file and it will be executed when system started.
…
Test Test Test:
Answer
Just add the execution command at the bottom of that file and it will be executed when system started.
…
Test Test Test:
- Run your test script without cron to make sure it actually works.
- Make sure you saved your command in cron, use sudo crontab -e.
- Reboot the server to confirm it all works sudo @reboot.