May 2017
Beginner
552 pages
28h 47m
English
Running specific commands when the system starts (or boots) is a common requirement. Some cron implementations support a @reboot time field to run a job during the reboot process. Note that this feature is not supported by all cron implementations and only root is allowed to use this feature on some systems. Now check out the following code:
@reboot command
This will run the command as your user at runtime.