How to add crontab job

From Geekworm Wiki
Revision as of 11:09, 19 July 2021 by Harry (talk | contribs)
Jump to navigation Jump to search

Add crontab job

sudo crontab -e

Crontab-step1.png

Choose "1" then press Enter

Add a line at the end of the file that reads like this:

@reboot python /home/pi/x735-v2.5/pwm_fan_control.py

Please note the path of this file, this is very important!!

you can place the other shell command.

Crontab-step2.png

Save and exit (CTRK + O and ENTER to save it). In nano editor, you do that by hitting CTRL + X, answering Y and hitting Enter when prompted.

Please run 'sudo reboot' to reboot device to enable crontab job.

Remove crontab job

sudo crontab -e

then remove the command line by yourself.


Add your comment
Geekworm Wiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.