Created
April 23, 2018 10:01
-
-
Save corerman/7fa476510c923e4308eccbe27c1eed1f to your computer and use it in GitHub Desktop.
crontab 开机启动
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A user can edit its cron table with crontab -e. | |
An example which will run /path/to/script.sh at startup: | |
@reboot /path/to/script.sh | |
If you need to run it as root, don't use @reboot sudo /path/to/script.sh; | |
use sudo crontab -eu root to edit root's crontab. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment