How Do I Get a Script to Run on Startup in Linux?
Contents How Do I Run a Linux Script at Startup? This Is the Way I Do It on Red Hat Linux Systems. Put Your Script in /Etc/Init. D, Owned by Root and...
Contents
How do I run a Linux script at startup?
This is the way I do it on Red Hat Linux systems. Put your script in /etc/init. d , owned by root and executable.
…
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.
How do I run a script at startup?
On Windows, the simplest way of running a program at startup is to place an executable file in the Startup folder. All the programs that are in this folder will be executed automatically when the computer opens. You can open this folder more easily by pressing WINDOWS KEY + R and then copying this text shell:startup .