How do I run a script automatically in Linux?

Tam ca

New member
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:
  1. Run your test script without cron to make sure it actually works.
  2. Make sure you saved your command in cron, use sudo crontab -e.
  3. Reboot the server to confirm it all works sudo @reboot.
 

Tìm kiếm

Back
Top