How do I run a script automatically in Linux?
Answer
local file using nano or gedit editor and add your scripts in it. File path could be
/etc/rc.local or /etc/rc. d/rc.
…
Test Test Test:
Answer
local file using nano or gedit editor and add your scripts in it. File path could be
/etc/rc.local or /etc/rc. d/rc.
…
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.