Open main menu

Changes

How to add crontab job

15 bytes added, 09:41, 31 May 2023
Choose "1" then press Enter
Add a the command line you want to execute at the end of the file that reads like this:
'''@reboot python python3 /home/pi/x735x-v2.5c1/pwm_fan_controlfan.py'''
or '''PS:'''
1. '''@reboot python /home/pi/x-c1/fan.py''' is a sample command, You '''MUST''' to modify it according to your needs.
or2. <span style="color:red;">Please make sure that the file path and file name are correct</span>
or any other job you want to run automatically after boot
<span style="color:red;">Please make sure that the file path and file name are correct</span>
you can place the other shell command[[File:Crontab-2.png|800px]]
[[File: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.
sudo crontab -e
then Then remove the command line by yourself.