How do I run a .sh file automatically?

Nguyên Lê

New member
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:
  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.
25 мар. 2015 г.
 

Tìm kiếm

Back
Top