But we hope that the script can be executed automatically when the Raspberry Pi board boots, we can use crontab system command to achieve it. Refer to [[How to add crontab job]] or refer to the following:
pi@raspberrypi ~ $ `sudo crontab -e`[[File: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/x728bat.py`[[File:X728-crontab.png]]
7. Power off command on Raspbian from software