In crontab, to enalbe tasks on reboot, the normal way is to use
@reboot cmd /path/to/file
Pitfall here is that, on startup $PATH may not be fully or correctely set yet. Then, cmd could be not found.
To avoid such error, you can:
- use full path cmd instead
- or
- set $PATH ahead.
To set $Path for crontab, firstly echo $PATH in terminal, copy the output, then in crontab, put $PATH=copied-line above @reboot line, that's it.